diff --git a/koji/daemon.py b/koji/daemon.py index 1947dd3c..533ae1a8 100644 --- a/koji/daemon.py +++ b/koji/daemon.py @@ -263,6 +263,8 @@ class SCM(object): elif len(userhost) > 2: raise koji.GenericError('Invalid username@hostname specified: %s' % netloc) + path = os.path.normpath(path) + # ensure that path and query do not end in / if path.endswith('/'): path = path[:-1]