Add "gitk" to the list of scripts to be installed automatically.
[gitweb.git] / git-fetch-script
index 17f22afedda0353a47bbac80d41d2908b8030f1b..2e62f001b189249243ad27b88bf8357526095f14 100755 (executable)
@@ -35,7 +35,7 @@ download_objects () {
 }
 
 echo "Getting remote $merge_name"
-download_one "$merge_repo/$merge_name" "$GIT_DIR"/MERGE_HEAD
+download_one "$merge_repo/$merge_name" "$GIT_DIR"/FETCH_HEAD || exit 1
 
 echo "Getting object database"
-download_objects "$merge_repo" "$(cat "$GIT_DIR"/MERGE_HEAD)"
+download_objects "$merge_repo" "$(cat "$GIT_DIR"/FETCH_HEAD)" || exit 1