aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/incremental-git-filterbranch.sh13
1 files changed, 5 insertions, 8 deletions
diff --git a/bin/incremental-git-filterbranch.sh b/bin/incremental-git-filterbranch.sh
index 06cb300..618f390 100755
--- a/bin/incremental-git-filterbranch.sh
+++ b/bin/incremental-git-filterbranch.sh
@@ -47,7 +47,7 @@ Where:
By default, all branches will be processed.
--tags
how tags should be processed. This can be one of these values:
- visited: process only the tags visited (default)
+ visited: process only the tags visited (default)
none: do not process any tag
all: process all tags
--blacklist <blacklist>
@@ -194,13 +194,10 @@ readParameters () {
absolutizeUrl () {
absolutizeUrl_url="${1}"
- case "${absolutizeUrl_url}" in
- [/\\]* | ?*:*)
- ;;
- *)
- absolutizeUrl_url=$(cd "${absolutizeUrl_url}" && pwd)
- ;;
- esac
+ if test -d "${1}"
+ then
+ absolutizeUrl_url=$(cd "${absolutizeUrl_url}" && pwd)
+ fi
printf '%s' "${absolutizeUrl_url}"
}

© 2014-2020 Faster IT GmbH | imprint | privacy policy