[PATCH] New git-apply test cases for scanning forwards and backwards.
[git.git] / git-clone-script
index 909ccc5..f988b8c 100755 (executable)
@@ -81,7 +81,11 @@ yes,yes)
            ;;
        yes)
            mkdir -p "$D/.git/objects/info"
-           echo "$repo/objects" >"$D/.git/objects/info/alternates"
+           {
+               test -f "$repo/objects/info/alternates" &&
+               cat "$repo/objects/info/alternates";
+               echo "$repo/objects"
+           } >"$D/.git/objects/info/alternates"
            ;;
        esac
 
@@ -123,6 +127,8 @@ yes,yes)
 esac
 
 # Update origin.
-mkdir -p "$D/.git/branches/" &&
-rm -f "$D/.git/branches/origin" &&
-echo "$repo" >"$D/.git/branches/origin"
+mkdir -p "$D/.git/remotes/" &&
+rm -f "$D/.git/remotes/origin" &&
+echo >"$D/.git/remotes/origin" \
+"URL: $repo
+Pull: master:origin"