[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v5 1/4] Introduce git-checkout.sh
On Wed, 21 Sep 2011, Juergen Gross wrote: > On 09/21/2011 11:55 AM, stefano.stabellini@xxxxxxxxxxxxx wrote: > > Introduce a script to perform git checkout on an external git tree; use > > git-checkout.sh in ioemu-dir-find. > > > > Signed-off-by: Stefano Stabellini<stefano.stabellini@xxxxxxxxxxxxx> > > > > diff --git a/.hgignore b/.hgignore > > --- a/.hgignore > > +++ b/.hgignore > > @@ -291,7 +291,7 @@ > > ^tools/xm-test/lib/XmTestLib/config.py$ > > ^tools/xm-test/lib/XmTestReport/xmtest.py$ > > ^tools/xm-test/tests/.*\.test$ > > -^tools/ioemu-remote > > +^tools/ioemu-dir-remote > > ^tools/ioemu-dir$ > > ^tools/ocaml/.*/.*\.annot$ > > ^tools/ocaml/.*/.*\.cmx?a$ > > diff --git a/scripts/git-checkout.sh b/scripts/git-checkout.sh > > new file mode 100755 > > --- /dev/null > > +++ b/scripts/git-checkout.sh > > @@ -0,0 +1,21 @@ > > +#!/bin/sh > > + > > +TREE=$1 > > +TAG=$2 > > +DIR=$3 > > + > > + > > +if test \! -d $DIR-remote; then > > + rm -rf $DIR-remote $DIR-remote.tmp; > > + mkdir $DIR-remote.tmp; rmdir $DIR-remote.tmp; > > + git clone $TREE $DIR-remote.tmp; > > + if test "$TAG" ; then > > + cd $DIR-remote.tmp > > + git branch -D dummy>/dev/null 2>&1 ||: > > + git checkout -b dummy $TAG > > Can't you use $GIT here? > This would enable using GIT="socksify git" (e.g. behind a firewall). > Yes, I have made the change. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |