summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: db41347)
raw | patch | inline | side by side (parent: db41347)
author | Rene Scharfe <rene.scharfe@lsrfire.ath.cx> | |
Fri, 29 Apr 2005 19:08:03 +0000 (12:08 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Fri, 29 Apr 2005 19:08:03 +0000 (12:08 -0700) |
If you set SHA1_FILE_DIRECTORY to something else than .git/objects
git-pull-script will store the fetched files in a location the rest of
the tools does not expect.
git-prune-script also ignores this setting, but I think this is good,
because pruning a shared tree to fit a single project means throwing
away a lot of useful data. :-)
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
git-pull-script will store the fetched files in a location the rest of
the tools does not expect.
git-prune-script also ignores this setting, but I think this is good,
because pruning a shared tree to fit a single project means throwing
away a lot of useful data. :-)
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
git-pull-script | patch | blob | history |
diff --git a/git-pull-script b/git-pull-script
index 5111da98e68f4c3eb44499d20a210966dd445212..0198c4805db7c2b78cd4424634873b0a86ee4107 100755 (executable)
--- a/git-pull-script
+++ b/git-pull-script
cp .git/HEAD .git/ORIG_HEAD
echo "Getting object database"
-rsync -avz --ignore-existing $merge_repo/objects/. .git/objects/.
+rsync -avz --ignore-existing $merge_repo/objects/. ${SHA1_FILE_DIRECTORY:-.git/objects}/.
echo "Getting remote head"
rsync -L $merge_repo/HEAD .git/MERGE_HEAD || exit 1