diff options
author | Jesse Keating <jkeating@redhat.com> | 2010-07-27 11:32:58 -0700 |
---|---|---|
committer | Jesse Keating <jkeating@redhat.com> | 2010-07-27 11:32:58 -0700 |
commit | a69d9c5eea8d58f333c51ad02568f3ab49d68c73 (patch) | |
tree | 142dc692f60097b2f834ffcfba97b9aa60193bd7 /src/pyfedpkg/__init__.py | |
parent | 68d0c93b40d4e53bc3597aa52bf8ebdda728566a (diff) | |
download | fedora-packager-a69d9c5eea8d58f333c51ad02568f3ab49d68c73.tar.gz fedora-packager-a69d9c5eea8d58f333c51ad02568f3ab49d68c73.tar.xz fedora-packager-a69d9c5eea8d58f333c51ad02568f3ab49d68c73.zip |
Allow anonymous checkouts with fedpkg
Comes from https://fedorahosted.org/fedora-packager/ticket/25
Diffstat (limited to 'src/pyfedpkg/__init__.py')
-rw-r--r-- | src/pyfedpkg/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py index 2fd1e6f..61991e2 100644 --- a/src/pyfedpkg/__init__.py +++ b/src/pyfedpkg/__init__.py @@ -270,7 +270,11 @@ def clone(module, user, path=os.getcwd(), branch=None, bare_dir=None): """ # construct the git url - giturl = GITBASEURL % {'user': user, 'module': module} + if user: + giturl = GITBASEURL % {'user': user, 'module': module} + else: + giturl = ANONGITURL % {'module': module} + # Create the command cmd = ['git', 'clone'] # do the clone |