summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 828cc61)
raw | patch | inline | side by side (parent: 828cc61)
author | Linus Torvalds <torvalds@osdl.org> | |
Wed, 17 Aug 2005 20:32:22 +0000 (13:32 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 17 Aug 2005 21:53:40 +0000 (14:53 -0700) |
This also makes "./filename" acceptable as a side effect, since the
pathname normalization handles that too.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
pathname normalization handles that too.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
update-cache.c | patch | blob | history |
diff --git a/update-cache.c b/update-cache.c
index 1fcc59a9c005e154c09731f25b7a99389dca2733..63815ed658e9c2007938309458444b218c330d68 100644 (file)
--- a/update-cache.c
+++ b/update-cache.c
{
int i, newfd, entries, has_errors = 0;
int allow_options = 1;
+ const char *prefix = setup_git_directory();
newfd = hold_index_file_for_update(&cache_file, get_index_file());
if (newfd < 0)
}
die("unknown option %s", path);
}
+ path = prefix_path(prefix, prefix ? strlen(prefix) : 0, path);
if (!verify_path(path)) {
fprintf(stderr, "Ignoring path %s\n", argv[i]);
continue;