[Frugalware-darcs] vmexam: darcs2git: move the tmp target git repo to a separate dir under /tmp

VMiklos vmiklos at frugalware.org
Tue Jun 12 19:32:30 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=vmexam;a=darcs_commitdiff;h=20070612173048-e2957-b939d1cd5186b389f1cd47f8893b77510e434f60.gz;

[darcs2git: move the tmp target git repo to a separate dir under /tmp
VMiklos <vmiklos at frugalware.org>**20070612173048
 it seems this is needed..
] {
hunk ./darcs/darcs2git 26
+	echo
+	echo "example: '$0 ../darcs/test .' - this will create a git repo in"
+	echo "                                the ./test dir"
hunk ./darcs/darcs2git 60
+mygitroot=`mktemp -d`
+rmdir $mygitroot
hunk ./darcs/darcs2git 80
-repository = $myname
+repository = $mygitroot
hunk ./darcs/darcs2git 87
-git clone $myroot/git/$myname
-rm -rf $myroot
+git clone $mygitroot $myname
+rm -rf $myroot $mygitroot
}


More information about the Frugalware-darcs mailing list