Commit 7a815a4f authored by Elouan Martinet's avatar Elouan Martinet
Browse files

Change to root directory when executing commands

parent a5fb8fa7457c
......@@ -143,6 +143,7 @@ def ghclone(ui, git_fork_url, git_upstream_url, working_directory, **opts):
@command("ghpull", [], _(""))
def ghpull(ui, repo, **opts):
os.chdir(repo.root)
"""Prepare working directory to work with github"""
git_repo = ui.config("gitrepo", "gitrepo")
try:
......@@ -154,6 +155,7 @@ def ghpull(ui, repo, **opts):
@command("ghpush", [], _("bookmark"))
def ghpush(ui, repo, bookmark, **opts):
"""Prepare working directory to work with github"""
os.chdir(repo.root)
git_repo = ui.config("gitrepo", "gitrepo")
try:
_ghpush(git_repo, bookmark)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment