summaryrefslogtreecommitdiff
path: root/firehose/plugin/firehose_plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'firehose/plugin/firehose_plugin.py')
-rw-r--r--firehose/plugin/firehose_plugin.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/firehose/plugin/firehose_plugin.py b/firehose/plugin/firehose_plugin.py
index 5406623..12272fa 100644
--- a/firehose/plugin/firehose_plugin.py
+++ b/firehose/plugin/firehose_plugin.py
@@ -103,8 +103,10 @@ class FirehosePlugin(cliapp.Plugin):
self.app.subcommands['checkout']([root['repo'], root['myref']])
else:
raise
- repopath = root['repo'].replace(':', '/')
- self.gitpath = self.make_path("ws", root['myref'], repopath)
+ self.gitpath = morphlib.sysbranchdir.SystemBranchDirectory(
+ root_directory=self.make_path("ws", root['myref']),
+ root_repository_url=root['repo'],
+ system_branch_name=root['myref']).get_git_directory_name(root['repo'])
def reset_to_tracking(self, root):
branch_head_sha = self.app.runcmd(['git', 'rev-parse', 'HEAD'],