Home | History | Annotate | Download | only in tools

Lines Matching refs:git

18 #  from the git server at android.git.kernel.org and package them in a nice tarball
40 register_var_option "--git-date=<date>" GIT_DATE "Only sources that existed until specified <date>"
42 GITCMD=git
43 register_var_option "--git=<executable>" GITCMD "Use this version of the git tool"
46 register_var_option "--git-http" OPTION_GIT_HTTP "Use http to download sources from git"
49 register_var_option "--git-base=<git-uri>" OPTION_GIT_BASE "Use specific git repository base"
56 "Download the NDK toolchain sources from android.git.kernel.org into <src-dir>.
64 By default, this script will download sources from android.git.kernel.org that
66 tree, use '--git-date=now' instead.
68 If you don't want to use the official servers, use --git-base=<path> to
69 download the sources from another set of git repostories."
76 echo "ERROR: You can't use --git-base and --git-http at the same time."
80 # Check that 'git' works
83 echo "The git tool doesn't seem to work. Please check $GITCMD"
86 log "Git seems to work ok."
112 GITPROTO=git
116 GITPREFIX=${GITPROTO}://android.git.kernel.org/toolchain
118 dump "Using git clone prefix: $GITPREFIX"
125 run git clone $GITPREFIX/$1 $1
127 log "cloning $GITPREFIX/$1.git"
128 run git clone $GITPREFIX/$1.git $1
130 fail_panic "Could not clone $GITPREFIX/$1.git ?"
131 log "checking out $BRANCH branch of $1.git"
134 run git checkout -b $BRANCH origin/$BRANCH
136 # If --git-date is used, or we have a default
138 REVISION=`git rev-list -n 1 --until="$GIT_DATE" HEAD`
140 run git checkout $REVISION
144 # get rid of .git directory, we won't need it.
146 log "getting rid of .git directory for $1."
147 run rm -rf $1/.git