Skip to content

Commit

Permalink
support for git-based plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
unbit committed Mar 5, 2014
1 parent 839638a commit 62d7495
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions uwsgiconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,15 @@ def build_uwsgi(uc, print_only=False, gcll=None):
if len(kv) > 1:
p = kv[1]
p = p.strip()
if p.startswith('http://') or p.startswith('https://') or p.startswith('git://') or p.startswith('ssh://'):
git_dir = p.split('/').pop()
if not os.path.isdir(git_dir):
if os.system('git clone %s' % p) != 0:
sys.exit(1)
else:
if os.system('cd %s ; git pull' % git_dir) != 0:
sys.exit(1)
p = git_dir
path = os.path.abspath(p)
else:
p = kv[0]
Expand Down

0 comments on commit 62d7495

Please sign in to comment.