PyGitUp icon indicating copy to clipboard operation
PyGitUp copied to clipboard

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

Open robohack opened this issue 5 years ago • 4 comments

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".

robohack avatar Jun 22 '19 01:06 robohack

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?

msiemens avatar Jul 03 '19 19:07 msiemens

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.

robohack avatar Mar 27 '21 17:03 robohack

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

liijunwei avatar Sep 24 '22 03:09 liijunwei

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 🙂

msiemens avatar Oct 20 '22 18:10 msiemens