shithub: git9

Download patch

ref: 4c0efaa3b6e543926aa7e36e1f98aaec7f8b0674
parent: b060b775d812d6c700202f599d0deaceed48818c
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Jun 3 19:56:10 EDT 2021

git/branch: create correct dirs on branch switch

we were garbling the strings.

--- a/branch
+++ b/branch
@@ -74,7 +74,7 @@
 	cleanpaths=`$nl{echo $"x$nl$"y | sort | uniq -u}
 }
 if(! ~ $#cleanpaths 0)
-	cleandirs=`$nl{echo $nl^$cleanpaths | sed 's@/[^/]+/?$@@' | uniq}
+	cleandirs=`$nl{{for(p in $cleanpaths) basename -d $p} | uniq}
 if(! ~ $#cleandirs 0){
 	mkdir -p $cleandirs
 	mkdir -p .git/index9/tracked/$cleandirs