summaryrefslogtreecommitdiff
path: root/revision.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-04-26 17:23:51 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-04-26 17:23:51 -0700
commitf996fbf8a09d54cb293cdbc05713ca6a4678740a (patch)
tree7e8fe4100153c85be6df899ad1522ee3628030b0 /revision.c
parentMerge branch 'jc/cache-tree' into next (diff)
parentgit-fetch: resolve remote symrefs for HTTP transport (diff)
downloadtgif-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.c8
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;
}