Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: libgit2/libgit2
...
head fork: libgit2/libgit2
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Commits on Jul 23, 2012
@carlosmn carlosmn config: set the error code if we can't find the global/system config 0b95681
Commits on Jul 31, 2012
@vmg vmg Merge pull request #826 from carlosmn/config-find-error
git_config_find_* does not set a git error
2340b18
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/fileops.c
View
4 src/fileops.c
@@ -424,6 +424,7 @@ int git_futils_find_system_file(git_buf *path, const char *filename)
}
if (win32_find_file(path, &root, filename) < 0) {
+ giterr_set(GITERR_OS, "The system file '%s' doesn't exist", filename);
git_buf_clear(path);
return GIT_ENOTFOUND;
}
@@ -438,6 +439,7 @@ int git_futils_find_system_file(git_buf *path, const char *filename)
return 0;
git_buf_clear(path);
+ giterr_set(GITERR_OS, "The system file '%s' doesn't exist", filename);
return GIT_ENOTFOUND;
#endif
}
@@ -455,6 +457,7 @@ int git_futils_find_global_file(git_buf *path, const char *filename)
}
if (win32_find_file(path, &root, filename) < 0) {
+ giterr_set(GITERR_OS, "The global file '%s' doesn't exist", filename);
git_buf_clear(path);
return GIT_ENOTFOUND;
}
@@ -473,6 +476,7 @@ int git_futils_find_global_file(git_buf *path, const char *filename)
return -1;
if (git_path_exists(path->ptr) == false) {
+ giterr_set(GITERR_OS, "The global file '%s' doesn't exist", filename);
git_buf_clear(path);
return GIT_ENOTFOUND;
}

No commit comments for this range

Something went wrong with that request. Please try again.