Skip to content

Commit f98eed9

Browse files
committed
Fix usage of require directory
1 parent 2b04d75 commit f98eed9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fabgis/git.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
from .common import setup_env
99

10+
1011
@task
1112
def update_git_checkout(code_path, url, repo_alias, branch='master', tag=None):
1213
"""Make sure there is a read only git checkout.
@@ -44,7 +45,7 @@ def update_git_checkout(code_path, url, repo_alias, branch='master', tag=None):
4445
fabtools.require.deb.package('git')
4546
if not exists(repo_path):
4647
fastprint(green('Repository does not exist, creating.\n'))
47-
fabtools.require.directory(code_path, use_sudo=True, user=env.user)
48+
fabtools.require.directory(code_path, use_sudo=True, owner=env.user)
4849
with cd(code_path):
4950
run('git clone %s %s' % (url, repo_alias))
5051
else:

0 commit comments

Comments
 (0)