# 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