stgit.git.refspec_localpart() and stgit.git.refspec_remotepart() referenced
undefined variables in their error paths.

Signed-off-by: Peter Grayson <[email protected]>
---
 stgit/git.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/stgit/git.py b/stgit/git.py
index 0ba86bad..7ad2295a 100644
--- a/stgit/git.py
+++ b/stgit/git.py
@@ -864,14 +864,14 @@ def refspec_localpart(refspec):
     if m:
         return m.group(1)
     else:
-        raise GitException, 'Cannot parse refspec "%s"' % line
+        raise GitException('Cannot parse refspec "%s"' % refspec)

 def refspec_remotepart(refspec):
     m = re.match('^([^:]*):[^:]*$', refspec)
     if m:
         return m.group(1)
     else:
-        raise GitException, 'Cannot parse refspec "%s"' % line
+        raise GitException('Cannot parse refspec "%s"' % refspec)

 def __remotes_from_config():
     return config.sections_matching(r'remote\.(.*)\.url')

_______________________________________________
stgit-users mailing list
[email protected]
https://mail.gna.org/listinfo/stgit-users

Reply via email to