git/branch: somewhere in the syncing, the fix for junk files was lost

bring it back.
front
Ori Bernstein 2021-06-06 09:11:10 -04:00
parent a2a0717c99
commit 78d2064a7c
1 changed files with 4 additions and 1 deletions

View File

@ -74,8 +74,11 @@ if(! ~ $#dirtypaths 0){
y=$nl^$dirtypaths
cleanpaths=`$nl{echo $"x$nl$"y | sort | uniq -u}
}
# creating the dirs with a single
# batch mkdir was significantly faster.
if(! ~ $#cleanpaths 0)
cleandirs=`$nl{echo $nl^$cleanpaths | sed 's@/[^/]+/?$@@' | uniq}
cleandirs=`$nl{for(p in $cleanpaths) basename -d $p | uniq -u}
if(! ~ $#cleandirs 0){
mkdir -p $cleandirs
mkdir -p .git/index9/tracked/$cleandirs