From 1b8530794815c411dc8c7c81cd045084cdad4ee0 Mon Sep 17 00:00:00 2001 From: Lubomír Sedlář Date: Nov 23 2017 09:16:45 +0000 Subject: Get buildhash from git+https:// url Fixes: https://pagure.io/fedpkg/issue/169 Signed-off-by: Lubomír Sedlář --- diff --git a/pyrpkg/__init__.py b/pyrpkg/__init__.py index 7783ef4..0742c43 100644 --- a/pyrpkg/__init__.py +++ b/pyrpkg/__init__.py @@ -1509,7 +1509,7 @@ class Commands(object): # don't do anything here, we'll handle not having hash # later pass - elif buildsource.startswith('git://'): + elif buildsource.startswith('git://') or buildsource.startswith('git+https://'): # Match a 40 char block of text on the url line, that'll be # our hash hash = buildsource.rsplit('#')[-1]