diff options
author | Jed Brown <jed@59A2.org> | 2014-05-26 07:11:10 -0600 |
---|---|---|
committer | Jed Brown <jed@59A2.org> | 2014-05-26 07:11:10 -0600 |
commit | a95c86dbfe0a08d74a4b409d3cd2352f28cdd227 (patch) | |
tree | 72ac106e28748efe5eb97e282af961f5c0af8313 | |
parent | 407ae4d45b81c6f9c8bcec39a7eeff04a98d3c08 (diff) | |
parent | 3accd13eb809f1c1c809eccd4a7ef06f83ff5401 (diff) | |
download | git-fat-a95c86dbfe0a08d74a4b409d3cd2352f28cdd227.tar.gz |
Merge branch 'osx_test_compat_fixes' of github:jmurty/git-fat (PR #35)
* 'osx_test_compat_fixes' of github:jmurty/git-fat:
Use custom fullpath() fn to avoid confusion with realpath vs alternative
Replace heavyweight use of python with a simple 'pwd' call
Make test-restrospective.sh test script compatible with OSX
-rwxr-xr-x | test-retroactive.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test-retroactive.sh b/test-retroactive.sh index dd02367..51a38ec 100755 --- a/test-retroactive.sh +++ b/test-retroactive.sh @@ -1,8 +1,11 @@ #!/bin/sh -ex +fullpath() { echo "`pwd`/$1"; } + git init retro cd retro cp /usr/share/dict/words words.big +chmod u+w words.big git add words.big git commit -m'Add big file without using git-fat' sort words.big > sorted.big @@ -25,7 +28,7 @@ git commit -am'Import big files into git-fat' git log --stat git fat find 10000 | awk '{print $1}' > fat-files -git filter-branch --index-filter "git fat index-filter $(realpath fat-files) --manage-gitattributes" --tag-name-filter cat -- --all +git filter-branch --index-filter "git fat index-filter $(fullpath fat-files) --manage-gitattributes" --tag-name-filter cat -- --all git log --stat git checkout HEAD^ @@ -37,14 +40,14 @@ ls -al git checkout master cat > .gitfat <<EOF [rsync] -remote = $(realpath ../retro-store) +remote = $(fullpath ../retro-store) EOF git add .gitfat git commit -m'Add .gitfat for local push' git fat push cd .. -git clone file:///$(realpath retro) retro-clone +git clone file:///$(fullpath retro) retro-clone cd retro-clone git fat init git fat pull |