Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Added folder for organizations
Browse files Browse the repository at this point in the history
Added folder clone  for organizations
  • Loading branch information
TheYkk committed Jun 18, 2019
1 parent fc26c00 commit d477462
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gitim.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ def clone_main(self):
clone_url = repo.ssh_url
if args.shallow:
print(u'Shallow cloning "{repo.full_name}"'.format(repo=repo))
call([u'git', u'clone', '--depth=1', clone_url, join(repo.name)])
call([u'git', u'clone', '--depth=1', clone_url, join(repo.full_name)])
else:
print(u'Cloning "{repo.full_name}"'.format(repo=repo))
call([u'git', u'clone', clone_url, join(repo.name)])
call([u'git', u'clone', clone_url, join(repo.full_name)])
elif not args.nopull:
print(u'Updating "{repo.name}"'.format(repo=repo))
call([u'git', u'pull'], env=dict(environ, GIT_DIR=join(repo.name, '.git').encode('utf8')))
else:
print(u'Already cloned, skipping...\t"{repo.name}"'.format(repo=repo))
print(u'Already cloned, skipping...\t"{repo.full_name}"'.format(repo=repo))
print(u'FIN')


Expand Down

0 comments on commit d477462

Please sign in to comment.