Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When will posh-git-sh retrieve git status automatically? #26

Closed
alexya opened this issue Jun 29, 2017 · 2 comments
Closed

When will posh-git-sh retrieve git status automatically? #26

alexya opened this issue Jun 29, 2017 · 2 comments

Comments

@alexya
Copy link

alexya commented Jun 29, 2017

https://stackoverflow.com/questions/44815493/git-checkout-to-another-branch-cannot-show-its-correct-status

I met an issue related to git status, please see the thread in stackoverflow.com.

I want to double check with you, will posh-git-sh script update the local repository status such as git fetch when I ran git checkout master to swtich branches?

From the design of git, when running git checkout <branch_name> it will not fetch the information from remote repository. But one of my computer can get updated staus but another computer failed. I think it may be that I mis-config posh-git-sh in the computer.

But I don't know where I made mistake. What I did these days is to make my script install oh-my-zsh and posh-git-sh automaticaly. https://github.com/alexya/envconfig/blob/master/setup.sh

Any help will be much appreciated.

@lyze
Copy link
Owner

lyze commented Jun 29, 2017

The script does not perform a fetch, since that might be a time-consuming operation. The core of the script is an exercise in parsing the output of git status.

Do you suspect a bug? We would need more detailed steps to reproduce.

@alexya
Copy link
Author

alexya commented Jun 30, 2017

I created a repo 'Test-Git' to have a test. Yes, git can not know if the remote repository is updated. We need to run git fetch to update the status.
But, I really have one computer which could auto-update the staus of a remote repository. Every time when I pressed enter in terminal, it can tell me the true status.

It is not a posh-git-sh issue. I think we can close this thread.

@lyze lyze closed this as completed Jun 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants