Uses current dir if its a git repo as mentioned in #299
This commit is contained in:
parent
b8acf77d72
commit
e329c84480
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user