Fecthing wrapfs version from .git/config
authorrohit <rohit>
Tue, 27 Mar 2018 13:45:37 +0000 (13:45 +0000)
committerrohit <rohit>
Tue, 27 Mar 2018 13:45:37 +0000 (13:45 +0000)
wrapfs-fix-branch.sh

index 7dc6e3dde1d042ac4d84ff629c7d0e4cc8c8b264..7d4af5d8c8b9093e41e14e06ee295ac5195c80b0 100755 (executable)
@@ -60,7 +60,13 @@ esac
 
 # make sure it ends with *.y.git
 if [[ "$WRAPFS_REPO" != *".y" ]]; then
-    WRAPFS_REPO=$(echo $WRAPFS_REPO | sed s/git/y.git/g)
+    wrapfs_repo=`git config --get-regexp "remote.origin.url" "wrapfs" | sed 's/.*\///g'`
+    if [ "$repo" != "" ]; then 
+        WRAPFS_REPO=$repo
+    else
+        WRAPFS_REPO=$(echo $WRAPFS_REPO | sed s/git/y.git/g)
+    fi
+    
 fi
 
 runcmd git config merge.renameLimit 999999