views:

29

answers:

0

Hi, When pushing branches to a gitosis hosted repository, although I get the expected response from the push command, the remote branches aren't listed when I do git branch -a. Even after a fetch, the branches still do not show up in the list.

Interestingly, I find files with names that correspond to the branches I have been trying to push in repositories/grid.git/refs/heads on the dreamhost gitosis server.

I've tried both of the ff forms to no avail.

git push origin refactor:refs/heads/refactor

git push origin refactor:refactor

but these same commands work perfectly on heroku's repo.

To put all this another way:

git push origin refactor:refactor

no errors. everything ok

git branch -a

origin/refactor missing

git branch --track rft origin/refactor

fatal: Not a valid object name: 'origin/refactor'

So what gives?