Prints `Needs push` while actually needs pull
askhat opened this issue · 6 comments
Thanks for the bugreport Askhat!
Can you try the latest master branch? I've committed a change that should fix this.
With kind regards
Ferry
Well, fix did not exactly resolve the issue. Now if repository needs to be pulled, program shows status ok
. I assume repos needs fetch
before merge-base
. Unfortunately, it could take too much time for each repo. So I'd suggest you either refuse this functionality or provide some special option which will preform fetch
.
Perhaps I should elaborate:
At first, after you introduced changes, I pulled your repository, and program showed status ok
for repos which actually needed pull. I manually performed fetch
in those directories, then program showed Needs pull
as expected.
That was the intended function of the new code I committed. It's unfortunate that there are so many different states a repository can be in, and there are even more ways of trying to figure out which exact state it's in. I also need any inspection of a repo to be fast, since I usually need to get the status of a few dozen repos.
I'm going to keep the changes I made, as I feel they are an improvement, even if they're not perfect ;-)
Thank you for your report and feedback!
I'm currently trying to see if I can get some more 'Needs pull' checks in place.
multi-git-status now also takes in account remote tracking branches when considering pull or pushes are needed. It still doesn't contact the remote repo though.