Deploy of local git-based charms does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-deployer |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Using juju-deployer on a local charm results in a git checkout to, e.g. trusty/
This patch written by Francesco Banconi may work:
=== modified file 'deployer/vcs.py'
--- deployer/vcs.py 2014-09-29 14:36:34 +0000
+++ deployer/vcs.py 2015-05-21 15:43:03 +0000
@@ -3,7 +3,10 @@
from bzrlib.workingtree import WorkingTree
-from .utils import ErrorExit
+from .utils import (
+ ErrorExit,
+ mkdir,
+)
class Vcs(object):
@@ -99,8 +102,12 @@
def branch(self):
- params = ["git", "clone", "--depth", "1", self.origin, self.path]
- self._call(params, self.err_branch, os.path.
+ params = [
+ "git", "clone", "--depth", "1",
+ self.origin, os.path.
+ cwd = os.path.
+ mkdir(cwd)
+ self._call(params, self.err_branch, cwd)
def is_modified(self):
params = ["git", "status", "-s"]
Changed in juju-deployer: | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
Changed in juju-deployer: | |
status: | Fix Committed → Fix Released |
this MP fixes this issue: https:/ /code.launchpad .net/~whitmo/ juju-deployer/ git-clone- fix