def update_git_repository(self, folder, git_repository):
<EOL>repo = git.Repo(folder)<EOL>local_head_name = repo.head.ref.name<EOL>remote = repo.remote('<STR_LIT>')<EOL>if remote.url == git_repository:<EOL><INDENT>return<EOL><DEDENT>remote.remove(repo, '<STR_LIT>')<EOL>origin = remote.add(repo, '<STR_LIT>', git_repository)<EOL>origin.fetch()<EOL>remote_head = getattr(origin.refs, local_head_name)<EOL>repo.create_head(local_head_name, remote_head).set_tracking_branch(remote_head)<EOL>
Updates git remote for the managed theme folder if has changed.

        :param git_repository: git url of the theme folder
        :param folder: path of the git managed theme folder