Accumulated documentation updates.
[gitweb.git] / git-clone-script
index 909ccc530136899eee130f1a29969281f3b878c9..f988b8c9c79fbb9ec9c3cad556cb4c9d51984475 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"