summaryrefslogtreecommitdiffstats
path: root/src/pyfedpkg/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/pyfedpkg/__init__.py')
-rw-r--r--src/pyfedpkg/__init__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py
index 992ca54..67df332 100644
--- a/src/pyfedpkg/__init__.py
+++ b/src/pyfedpkg/__init__.py
@@ -59,7 +59,7 @@ log = logging.getLogger("fedpkg")
log.addHandler(h)
# Define some helper functions, they start with _
-def _hash_file(file, hashtype):
+def _hash_file(file, Hashtype):
"""Return the hash of a file given a hash type"""
try:
@@ -359,7 +359,9 @@ def get_latest_commit(module):
# This is stupid that I have to use subprocess :/
url = ANONGITURL % {'module': module}
- cmd = ['git', 'ls-remote', url, 'master']
+ # This cmd below only works to scratch build rawhide
+ # We need something better for epel
+ cmd = ['git', 'ls-remote', url, 'refs/heads/master']
try :
proc = subprocess.Popen(cmd, stderr=subprocess.PIPE,
stdout=subprocess.PIPE)