summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcslib/git.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcslib/git.sh b/vcslib/git.sh
index 3359fab..af8374e 100644
--- a/vcslib/git.sh
+++ b/vcslib/git.sh
@@ -127,7 +127,7 @@ git_update_config()
git_compat_debver()
{
- echo "$1" | tr ":" "%" | tr "~" "_"
+ echo "$1" | perl -pe 'y/:~/%_/;s/\.(?=\.|$|lock$)/.#/g;'
}
git_is_working_tree_clean()