[git] IDEA-131705 Fix a misprint :( If there is no error, do change the target

(cherry picked from commit 679c59f)
[git] IDEA-116489 mark dirty & refresh after pull

(cherry picked from commit 583264e)
[git] IDEA-131036 notNullize environment variable values

(cherry picked from commit 66276ed)
[vcs] Update Project: wider local history action

Start the action before update, instead of before vfs refresh.
End the action after possible after-update operations (like conflicts
resolving in SVN).

(cherry picked from commit 500339d)
[git] IDEA-115997 refresh .git after creating a tag from menu action

(cherry picked from commit c2c4acd)