This is a critical bugfix. Without this invoking a push command behaved differently when invoked from a file-visiting buffer than from a Magit buffer, which could lead to a user pushing changes to a public repository without even noticing.
Synchronize this redefinition of `magit-refresh-status' with the official implementation in "magit.el".
It is also defined in magit.el.
replacing `magit-insert-tag-status'. I have proposed this change to be merged into Magit master because some people are not as found of this new feature as I am.
It is now defined in magit.el.
This error sometimes occures when updating the Emacsmirror. It appears to due to this function being called in bare repositories. This isn't a proper fix and this function should not be called in the mentioned context anyway.
In older Git versions `git push -u' did not set the remote branch. Add this hack which is also part of the original `magit-push` to ensure that it is set when appropriate.