Uses current dir if its a git repo as mentioned in #299

This commit is contained in:
Andy Neff 2015-05-16 12:13:50 -04:00
parent b8acf77d72
commit e329c84480
2 changed files with 19 additions and 6 deletions

@ -12,9 +12,16 @@ if grep -q ' 6' /etc/redhat-release; then
fi fi
yum install -y bison git golang make man which yum install -y bison git golang make man which
cd /tmp
[ -d git-lfs ] || git clone https://github.com/github/git-lfs cd $(dirname ${BASH_SOURCE[0]})
cd git-lfs if git rev-parse; then
cd $(git rev-parse --show-toplevel)
else
cd /tmp
[ -d git-lfs ] || git clone https://github.com/github/git-lfs
cd git-lfs
fi
./script/bootstrap ./script/bootstrap
install -D bin/git-lfs /usr/local/bin install -D bin/git-lfs /usr/local/bin
git lfs init git lfs init

@ -18,9 +18,15 @@ if [[ $go_version < 1.3.1 ]]; then
set -u set -u
fi fi
cd /tmp cd $(dirname ${BASH_SOURCE[0]})
[ -d git-lfs ] || git clone https://github.com/github/git-lfs if git rev-parse; then
cd git-lfs cd $(git rev-parse --show-toplevel)
else
cd /tmp
[ -d git-lfs ] || git clone https://github.com/github/git-lfs
cd git-lfs
fi
./script/bootstrap ./script/bootstrap
install -D bin/git-lfs /usr/local/bin install -D bin/git-lfs /usr/local/bin
git lfs init git lfs init