diff options
author | Junio C Hamano <junkio@cox.net> | 2006-04-26 17:23:51 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-04-26 17:23:51 -0700 |
commit | f996fbf8a09d54cb293cdbc05713ca6a4678740a (patch) | |
tree | 7e8fe4100153c85be6df899ad1522ee3628030b0 /revision.c | |
parent | Merge branch 'jc/cache-tree' into next (diff) | |
parent | git-fetch: resolve remote symrefs for HTTP transport (diff) | |
download | tgif-f996fbf8a09d54cb293cdbc05713ca6a4678740a.tar.xz |
Merge branch 'nh/fetch-http' into next
* nh/fetch-http:
git-fetch: resolve remote symrefs for HTTP transport
commit-tree.c: check_valid() microoptimization.
Fix filename verification when in a subdirectory
rebase: typofix.
socksetup: don't return on set_reuse_addr() error
Diffstat (limited to 'revision.c')
-rw-r--r-- | revision.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/revision.c b/revision.c index f9c7d15f56..f2a9f25fe1 100644 --- a/revision.c +++ b/revision.c @@ -752,17 +752,15 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch arg++; } if (get_sha1(arg, sha1) < 0) { - struct stat st; int j; if (seen_dashdash || local_flags) die("bad revision '%s'", arg); /* If we didn't have a "--", all filenames must exist */ - for (j = i; j < argc; j++) { - if (lstat(argv[j], &st) < 0) - die("'%s': %s", argv[j], strerror(errno)); - } + for (j = i; j < argc; j++) + verify_filename(revs->prefix, argv[j]); + revs->prune_data = get_pathspec(revs->prefix, argv + i); break; } |