diff options
| author | Vicent Martà <tanoku@gmail.com> | 2012-03-06 01:37:56 +0100 |
|---|---|---|
| committer | Vicent Martà <tanoku@gmail.com> | 2012-03-06 01:37:56 +0100 |
| commit | 9d160ba85539bbc593369f597a07d42c2770dff4 (patch) | |
| tree | 18e43d3691f5b2138e9e98e9b1dd5144ab4b5627 /src | |
| parent | 1a48112342932e9fcd45a1ff5935f1c9c53b83d1 (diff) | |
| download | libgit2-9d160ba85539bbc593369f597a07d42c2770dff4.tar.gz | |
diff: Fix rebase breackage
Diffstat (limited to 'src')
| -rw-r--r-- | src/attr.c | 2 | ||||
| -rw-r--r-- | src/iterator.c | 2 | ||||
| -rw-r--r-- | src/odb_loose.c | 2 | ||||
| -rw-r--r-- | src/repository.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/attr.c b/src/attr.c index 603498df2..0aa1e325b 100644 --- a/src/attr.c +++ b/src/attr.c @@ -235,7 +235,7 @@ int git_attr_cache__lookup_or_create_file( return GIT_SUCCESS; } - if (loader && git_path_exists(filename) != GIT_SUCCESS) { + if (loader && git_path_exists(filename) == false) { *file_ptr = NULL; return GIT_SUCCESS; } diff --git a/src/iterator.c b/src/iterator.c index c026c3c09..0ce89df9e 100644 --- a/src/iterator.c +++ b/src/iterator.c @@ -440,7 +440,7 @@ static int workdir_iterator__update_entry(workdir_iterator *wi) /* detect submodules */ if (S_ISDIR(wi->entry.mode) && - git_path_contains(&wi->path, DOT_GIT) == GIT_SUCCESS) + git_path_contains(&wi->path, DOT_GIT) == true) wi->entry.mode = S_IFGITLINK; return GIT_SUCCESS; diff --git a/src/odb_loose.c b/src/odb_loose.c index 6546fa839..2dd7004ab 100644 --- a/src/odb_loose.c +++ b/src/odb_loose.c @@ -480,7 +480,7 @@ static int fn_locate_object_short_oid(void *state, git_buf *pathbuf) { return GIT_SUCCESS; } - if (git_path_isdir(pathbuf->ptr) == true) { + if (git_path_isdir(pathbuf->ptr) == false) { /* We are already in the directory matching the 2 first hex characters, * compare the first ncmp characters of the oids */ if (!memcmp(sstate->short_oid + 2, diff --git a/src/repository.c b/src/repository.c index fe785cfcd..e274252d2 100644 --- a/src/repository.c +++ b/src/repository.c @@ -171,7 +171,7 @@ int git_repository_open(git_repository **repo_out, const char *path) * of the working dir, by testing if it contains a `.git` * folder inside of it. */ - if (git_path_contains_dir(&path_buf, GIT_DIR) == GIT_SUCCESS) + if (git_path_contains_dir(&path_buf, GIT_DIR) == true) git_buf_joinpath(&path_buf, path_buf.ptr, GIT_DIR); if (quickcheck_repository_dir(&path_buf) < GIT_SUCCESS) { |
