DORMANTno replies

[PATCH 12/19] Remove trailing slash from prefix parameter

From: Paul Campbell <hidden>
Date: 2016-06-15 22:56:20
Subsystem: the rest · Maintainer: Linus Torvalds

From d4aa87f53b61481d2f916415f0baec527a8b6417 Mon Sep 17 00:00:00 2001
From: Paul Campbell <redacted>
Date: Sat, 9 Mar 2013 18:34:10 +0000
Subject: [PATCH 12/19] Remove trailing slash from prefix parameter

Conflicts:
	git-subtree.sh

Original-Author: Herman van Rink [off-list ref]
Conflicts-resolved-by: Paul Campbell [off-list ref]
---
 contrib/subtree/git-subtree.sh | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/contrib/subtree/git-subtree.sh b/contrib/subtree/git-subtree.sh
index d67fe5a..ae7d1fe 100755
--- a/contrib/subtree/git-subtree.sh
+++ b/contrib/subtree/git-subtree.sh
@@ -103,6 +103,9 @@ while [ $# -gt 0 ]; do
 	esac
 done

+# Remove trailing slash
+prefix="${prefix%/}";
+
 command="$1"
 shift
 case "$command" in
-- 
1.8.2.rc1


-- 
Paul [W] Campbell
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help