shithub: git9

Download patch

ref: 5d65bc0372824b98d8f909d8de3e5ee2c4c08668
parent: 6d42c874d128cd8afcdbbe22f9f8cb54b33562f7
author: kvik <[email protected]>
date: Sat Nov 2 16:24:56 EDT 2019

Avoid trying to create a/b tree mountpoints multiple times

--- a/export
+++ b/export
@@ -19,6 +19,7 @@
 
 scratch=/tmp/gitexport.$pid
 mkdir -p $scratch
+mkdir $scratch/a $scratch/b
 for(c in $commits){
 	cp=`{git/query -p $c}
 	pp=`{git/query -p $c'^'}
@@ -26,8 +27,6 @@
 	@{
 		rfork n
 		cd $scratch
-		mkdir a
-		mkdir b
 		bind $pp/tree a
 		bind $cp/tree b