We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fbf59cd + ace33bf commit 8827a58Copy full SHA for 8827a58
git-request-pull.sh
@@ -51,8 +51,18 @@ fi
51
tag_name=$(git describe --exact "$head^0" 2>/dev/null)
52
53
test -n "$base" && test -n "$url" || usage
54
-baserev=$(git rev-parse --verify "$base"^0) &&
55
-headrev=$(git rev-parse --verify "$head"^0) || exit
+
+baserev=$(git rev-parse --verify --quiet "$base"^0)
56
+if test -z "$baserev"
57
+then
58
+ die "fatal: Not a valid revision: $base"
59
+fi
60
61
+headrev=$(git rev-parse --verify --quiet "$head"^0)
62
+if test -z "$headrev"
63
64
+ die "fatal: Not a valid revision: $head"
65
66
67
merge_base=$(git merge-base $baserev $headrev) ||
68
die "fatal: No commits in common between $base and $head"
0 commit comments