[PATCH] fix git-parse-remote.sh for remotes that contain slashes
Signed-off-by: Stefan Naewe <stefan.naewe@gmail.com>
---
git-parse-remote.sh | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/git-parse-remote.sh b/git-parse-remote.sh
index 5f47b18..7cf204e 100644
--- a/git-parse-remote.sh
+++ b/git-parse-remote.sh
@@ -7,8 +7,12 @@ GIT_DIR=$(git rev-parse -q --git-dir) || :;
get_data_source () {
case "$1" in
*/*)
- echo ''
- ;;
+ if test "$(git config --get "remote.$1.url")"
+ then
+ echo config
+ else
+ echo ''
+ fi ;;
.)
echo self
;;
--
1.7.3.5