X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=revision.c;h=d41e59b9ccbe30d0589d52d73e0c7bef26394a23;hb=bdf0ef0824ecca427ec04ac047ffe4aaf73ace5a;hp=03dd23893947231ef8040ad3c38021ae64f27ae5;hpb=e23d0b4a4a55cc07e133905f0e9526b3550dd61b;p=git.git diff --git a/revision.c b/revision.c index 03dd2389..d41e59b9 100644 --- a/revision.c +++ b/revision.c @@ -537,7 +537,7 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch revs->max_count = atoi(arg + 12); continue; } - /* accept -, like traditilnal "head" */ + /* accept -, like traditional "head" */ if ((*arg == '-') && isdigit(arg[1])) { revs->max_count = atoi(arg + 1); continue; @@ -674,7 +674,7 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch local_flags = UNINTERESTING; arg++; } - if (get_sha1(arg, sha1) < 0) { + if (get_sha1(arg, sha1)) { int j; if (seen_dashdash || local_flags) @@ -693,7 +693,7 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch if (def && !revs->commits) { unsigned char sha1[20]; struct commit *commit; - if (get_sha1(def, sha1) < 0) + if (get_sha1(def, sha1)) die("bad default revision '%s'", def); commit = get_commit_reference(revs, def, sha1, 0); add_one_commit(commit, revs);