Meta/Reintegrate: guard for misspelt topic name
Earlier the script just kept going, pretending that the failure from the "merge" was due to a conflicted change that rerere could take care of.
Junio C Hamano committed
Jul 19, 2013 at 10:19 UTC
c0867ec58f1a055f706996d0bf8375b80e1de8bc
1 file changed
+5
-3
Reintegrate
+5
-3
@@ -139,9 +139,11 @@ no)
139
"" | "#"*)
140
echo >&2 "* $branch"
141
142
- save=$(git rev-parse --verify HEAD)
143
- tip=$(git rev-parse --verify "$branch^0")
144
- mb=$(git merge-base "$tip" "$save")
142
+ save=$(git rev-parse --verify HEAD) &&
143
+ tip=$(git rev-parse --verify "$branch^0") &&
144
+ mb=$(git merge-base "$tip" "$save") ||
145
+ exit
146
+
147
test "$mb" = "$tip" && continue
148
149
mark_cut