aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Locati <michele@locati.it>2018-03-14 18:01:06 +0100
committerMichele Locati <michele@locati.it>2018-03-14 18:01:06 +0100
commit6cb2a990ba107284a5eee9cd1b79d5b4de903fe0 (patch)
treefc7ff360afe64e098aad4c6bc807588424ff0a44
parent2757ab34888307b0cf91f85c293a2c321595209a (diff)
downloadincremental-git-filter-branch-6cb2a990ba107284a5eee9cd1b79d5b4de903fe0.zip
incremental-git-filter-branch-6cb2a990ba107284a5eee9cd1b79d5b4de903fe0.tar.gz
incremental-git-filter-branch-6cb2a990ba107284a5eee9cd1b79d5b4de903fe0.tar.bz2
Improve generation of absolute directories
-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