History

git: handle absolute paths better

we were catting $gitrel onto absolute paths. stop it.

Ori Bernstein committed 5 years ago

Commit bd6837e1 parent a76f63d3 files · +8 −7Browse files

Showing the changes to sys/src/cmd/git/diff (1 of 3 files). Show all

Unified · Split

sys/src/cmd/git/diff+1−1
@@ -12,7 +12,7 @@ if(~ $#commit 0) · 11 unmodified lines
1212
1313 files=()
1414 if(! ~ $#* 0)
15− files=`{cleanname $gitrel/$*}
15+ files=`{cleanname -d $gitrel $*}
1616
1717 branch=`{git/query -p $commit}
1818 if(~ $summarize 1){