I create a new project on http://git-dev.drupal.org

On my PC the commands are:

mkdir fransk-test2
cd fransk-test2
git init
echo "name = fransk-test2" > fransk-test2.info
git add fransk-test2.info
git commit -m "Initial commit."
git remote add origin ssh://franskuipers@git-dev.drupal.org:2222/project/fransk-test2.git
git push origin master
cd ..
rm -rf fransk-test2/
git clone ssh://franskuipers@git-dev.drupal.org:2222/project/fransk-test2.git
cd fransk-test2
git co -b 7.x-1.x
ls -l
touch README.txt
git add .
git commit -m "Added: README.txt"
git push origin 7.x-1.x

Went back to http://git-dev.drupal.org/project/fransk-test2/git-instructions

I expect a select-box with 2 branches: master & 7.x-1.x but only the master branch is showing.

Comments

eliza411’s picture

Was there text in that README.txt file?

franskuipers’s picture

There was no text in the readme.

eliza411’s picture

I verified, your branch should have appeared and the problem was due to some code that came in with Friday night's last batch. Now that we've reverted that bit, you should have more success.

I asked about text in the file because earlier when testing I had some odd results when I committed empty files and I hadn't yet narrowed down my exact steps.

At any rate, what you did would have worked, and it does on today's build.

If it works for you, then we can safely close this issue.

webchick’s picture

Status: Active » Fixed

I followed Frank's steps (except webchick instead of frank in the examples :)) and all seems to be working now.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.