diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-11-11 15:30:48 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-11-11 15:36:21 +0000 |
commit | a34aadc39454bf7b83535b112697c6fa0bfb71e0 (patch) | |
tree | b72be16395700aed75e2e64260bf20881429d1a5 /baserockimport/mainloop.py | |
parent | 1c6d16c6d7521b57486838d0de1f81eb9afddbdc (diff) | |
download | import-a34aadc39454bf7b83535b112697c6fa0bfb71e0.tar.gz |
Be more consistent that definitions-dir must be a Git repo
If we create the definitions-dir we also initialise it as a Git repo,
now.
I also deleted a no-longer-needed hack.
Diffstat (limited to 'baserockimport/mainloop.py')
-rw-r--r-- | baserockimport/mainloop.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/baserockimport/mainloop.py b/baserockimport/mainloop.py index b0f124c..ddcd480 100644 --- a/baserockimport/mainloop.py +++ b/baserockimport/mainloop.py @@ -362,7 +362,7 @@ class ImportLoop(object): self._run_lorry(lorry) if os.path.exists(checkoutpath): - repo = GitDirectory(checkoutpath) + repo = morphlib.gitdir.GitDirectory(checkoutpath) repo.update_remotes() else: if already_lorried: @@ -370,7 +370,7 @@ class ImportLoop(object): 'Expected %s to exist, but will recreate it', checkoutpath) cliapp.runcmd(['git', 'clone', repopath, checkoutpath]) - repo = GitDirectory(checkoutpath) + repo = morphlib.gitdir.GitDirectory(checkoutpath) except cliapp.AppException as e: raise BaserockImportException(e.msg.rstrip()) |