]> git.pld-linux.org Git - packages/crossnacl-binutils.git/commitdiff
use bare git repo
authorElan Ruusamäe <glen@delfi.ee>
Thu, 13 Sep 2012 19:14:57 +0000 (22:14 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 13 Sep 2012 19:14:57 +0000 (22:14 +0300)
get-source.sh

index 97d05efb177848c190c94e44bf159fb60868468f..c7a9c681577996fc2cb4167d5e68a3da92dd3b63 100755 (executable)
@@ -29,11 +29,11 @@ test -e DEPS.py || svn cat http://src.chromium.org/chrome/branches/$chrome_branc
 nacl_revision=$(awk -F'"' '/nacl_revision.:/{print $4}' DEPS.py)
 test -n "$nacl_revision"
 
-export GIT_DIR=$package/.git
+export GIT_DIR=$package.git
 
-if [ ! -d $package ]; then
-       install -d $package
-       git init
+if [ ! -d $GIT_DIR ]; then
+       install -d $GIT_DIR
+       git init --bare
        git remote add origin $repo_url
        git fetch --depth 1 origin refs/heads/master:refs/remotes/origin/master
 else
This page took 0.080921 seconds and 4 git commands to generate.