You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2018/09/19 06:39:56 UTC

[kibble-scanners] branch master updated: wrong var name here

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble-scanners.git


The following commit(s) were added to refs/heads/master by this push:
     new ff0253f  wrong var name here
ff0253f is described below

commit ff0253f2a30f6483b5c72ac4dd894cc834550b2c
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Wed Sep 19 08:39:35 2018 +0200

    wrong var name here
---
 src/plugins/utils/git.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/utils/git.py b/src/plugins/utils/git.py
index 816bac1..a2a93c5 100644
--- a/src/plugins/utils/git.py
+++ b/src/plugins/utils/git.py
@@ -43,7 +43,7 @@ def defaultBranch(source, datapath):
                 branch = ""
 
     # If still not found, resort to a remote listing
-    if branch == "" and repo:
+    if branch == "" and datapath:
         inp = subprocess.check_output("cd %s && git ls-remote --heads %s" % (datapath, source['sourceURL']),  shell = True, stderr=subprocess.DEVNULL).decode('ascii', 'replace').split()
         if len(inp) > 0:
             for remote in inp: