Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Point the net installer to the 'devel' branches
Browse files Browse the repository at this point in the history
The net installer is meant to make contributing and testing easier, so it
is a bit pointless to let it check out the most-likely-obsolete 'master'
branches of msysgit.git and 4msysgit.git.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Apr 7, 2010
1 parent 47ff675 commit 1257c12
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion share/msysGit/net/release.sh
Expand Up @@ -8,7 +8,7 @@ test -z "$1" && {
}

MSYSGITBRANCH="$2"
test -z "$MSYSGITBRANCH" && MSYSGITBRANCH=master
test -z "$MSYSGITBRANCH" && MSYSGITBRANCH=devel
FOURMSYSGITBRANCH="$3"

TARGET="$HOME"/msysGit-netinstall-"$1".exe
Expand Down
24 changes: 13 additions & 11 deletions share/msysGit/net/setup-msysgit.sh
Expand Up @@ -53,11 +53,11 @@ git config core.autocrlf false &&
git config remote.origin.url $MSYSGIT_REPO_GIT &&
git config remote.origin.fetch \
+refs/heads/@@MSYSGITBRANCH@@:refs/remotes/origin/@@MSYSGITBRANCH@@ &&
git config branch.master.remote origin &&
git config branch.master.merge refs/heads/@@MSYSGITBRANCH@@ &&
git config branch.@@MSYSGITBRANCH@@.remote origin &&
git config branch.@@MSYSGITBRANCH@@.merge refs/heads/@@MSYSGITBRANCH@@ &&
git config remote.mob.url $MSYSGIT_REPO_GIT_MOB &&
git config remote.mob.fetch +refs/heads/mob:refs/remotes/origin/mob &&
git config remote.mob.push master:mob &&
git config remote.mob.fetch +refs/heads/@@MSYSGITBRANCH@@:refs/remotes/origin/mob &&
git config remote.mob.push @@MSYSGITBRANCH@@:mob &&

USE_HTTP=
git fetch || {
Expand All @@ -77,10 +77,10 @@ git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'

echo
echo -------------------------------------------------------
echo Checking out the master branch
echo Checking out the @@MSYSGITBRANCH@@ branch
echo -------------------------------------------------------
git-checkout -l -f -q -b master origin/@@MSYSGITBRANCH@@ ||
error Couldn\'t checkout the master branch!
git-checkout -l -f -q -b @@MSYSGITBRANCH@@ origin/@@MSYSGITBRANCH@@ ||
error Couldn\'t checkout the @@MSYSGITBRANCH@@ branch!
mkdir -p .git/hooks &&
cp share/msysGit/post-checkout-hook .git/hooks/post-checkout ||
error Could not install post-checkout hook
Expand Down Expand Up @@ -108,7 +108,7 @@ t)
esac

git config submodule.git.url $MINGW4MSYSGIT_REPO_URL &&
mkdir git &&
mkdir -p git &&
cd git &&
git init &&
git config core.autocrlf input &&
Expand All @@ -123,12 +123,14 @@ git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*' &&
git fetch --tags origin &&
if test -z "@@FOURMSYSGITBRANCH@@"
then
FOURMSYS=$(cd .. && git ls-tree HEAD git |
sed -n "s/^160000 commit \(.*\) git$/\1/p")
FOURMSYS=origin/devel
else
FOURMSYS=origin/@@FOURMSYSGITBRANCH@@
fi &&
git checkout -l -f -q $FOURMSYS ||
git config branch.${FOURMSYS#origin/}.remote origin &&
git config branch.${FOURMSYS#origin/}.merge refs/heads/${FOURMSYS#origin/} &&
git fetch origin &&
git checkout -l -f -q -b ${FOURMSYS#origin/} $FOURMSYS ||
error Couldn\'t update submodule git!

echo
Expand Down

0 comments on commit 1257c12

Please sign in to comment.