diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-06-08 17:03:41 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-06-08 17:03:41 +0200 |
| commit | ae496955d23d8c323259c0e090911d6fa3e2c3dc (patch) | |
| tree | a44129a4d0b52def1333cb170a9af5304146d716 /src/index.c | |
| parent | 1071c56519866afd41db2f30705eba8406b6a4a1 (diff) | |
| download | libgit2-ae496955d23d8c323259c0e090911d6fa3e2c3dc.tar.gz | |
windows: Fix Symlink issues
Handle Symlinks if they can be handled in Win32. This is not even
compiled. Needs review.
The lstat implementation is modified from core Git.
The readlink implementation is modified from PHP.
Diffstat (limited to 'src/index.c')
| -rw-r--r-- | src/index.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/index.c b/src/index.c index 798d9e918..60b65848d 100644 --- a/src/index.c +++ b/src/index.c @@ -411,11 +411,8 @@ static int index_init_entry(git_index_entry *entry, git_index *index, const char git__joinpath(full_path, index->repository->path_workdir, rel_path); - if (gitfo_shallow_exists(full_path) < 0) - return git__throw(GIT_ENOTFOUND, "Failed to initialize entry. %s does not exist", full_path); - if (gitfo_lstat(full_path, &st) < 0) - return git__throw(GIT_EOSERR, "Failed to initialize entry. %s appears to be corrupted", full_path); + return git__throw(GIT_EOSERR, "Failed to initialize entry. '%s' cannot be opened", full_path); if (stage < 0 || stage > 3) return git__throw(GIT_ERROR, "Failed to initialize entry. Invalid stage %i", stage); |
