msiemens / PyGitUp

A nicer `git pull`
MIT License
528 stars 41 forks source link

`git up` doesn't seem to mention the currently checked out branch unless it appears in a `branch` entry #93

Open robohack opened 5 years ago

robohack commented 5 years ago

git up doesn't seem to mention the currently checked out branch unless it appears in a branch entry in the .git/config file.

In this case there wasn't any thing to do, but it was very disconcerting not to see the current branch mentioned as "up to date".

msiemens commented 5 years ago

Hey! I tried to reproduce this locally, but when I remove the branch "<name>" section from the git config file, PyGitUp fails with Can't update your repo because it doesn't has any branches with tracking information for me. Could you post an example .git/config that exhibits the behavior you described?

robohack commented 3 years ago

I'm working a little more closely with git up again, so I'll have another look at this and see if I can reproduce it.

liijunwei commented 1 year ago

Tried to reproduce and got same result as https://github.com/msiemens/PyGitUp/issues/93#issuecomment-508232072

msiemens commented 1 year ago

Tried to reproduce and got same result as #93 (comment)

Could you maybe post a small example of how you create a Git repo that exhibits this behavior? Ideally with the exact commands you executed. That would help me a lot to reproduce this issue 🙂