mirror of
https://github.com/git/git.git
synced 2024-11-24 18:33:43 +08:00
[PATCH] GIT: Honour SHA1_FILE_DIRECTORY env var in git-pull-script
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>
This commit is contained in:
parent
db413479f1
commit
d840b3b285
@ -9,7 +9,7 @@ rm -f .git/MERGE_HEAD .git/ORIG_HEAD
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user