update_repo must use os.chdir(). calling os.system(cd
This commit is contained in:
parent
11c003c6af
commit
c8cb9b4bdf
1 changed files with 3 additions and 1 deletions
|
@ -71,7 +71,8 @@ def clone_repo(repo, dir, args):
|
|||
|
||||
|
||||
def update_repo(repo, dir, args):
|
||||
os.system("cd %s"%(dir,))
|
||||
savedPath = os.getcwd()
|
||||
os.chdir(dir)
|
||||
|
||||
# GitHub => Local
|
||||
if args.mirror:
|
||||
|
@ -80,6 +81,7 @@ def update_repo(repo, dir, args):
|
|||
else:
|
||||
os.system("git pull %s"%(args.git,))
|
||||
|
||||
os.chdir(savedPath)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
Loading…
Add table
Reference in a new issue