Permalink
Browse files

Remove the extra .git from the branch url.

  • Loading branch information...
darron committed Jan 19, 2014
1 parent 393026f commit 83ec3c690faed7f3c9abfbadc0f9e043b384f95b
Showing with 3 additions and 2 deletions.
  1. +3 −2 bin/gitreceive
View
@@ -66,7 +66,8 @@ EOF
do
if [[ $refname != "refs/heads/master" ]] ; then
BRANCH=$(echo $refname | cut -d '/' -f 3)
RECEIVE_REPO="$RECEIVE_REPO-$BRANCH"
BASE_NAME=`basename $RECEIVE_REPO .git`
RECEIVE_REPO="$BASE_NAME-$BRANCH"
fi
git archive $newrev | $GITHOME/receiver "$RECEIVE_REPO" "$newrev" "$RECEIVE_USER" "$RECEIVE_FINGERPRINT"
@@ -83,4 +84,4 @@ EOF
*)
echo "Usage: gitreceive <command> [options]"
;;
esac
esac

0 comments on commit 83ec3c6

Please sign in to comment.