Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix testing empty repo

  • Loading branch information...
commit 7f0dc60607f2230b0b535be6f8af1c8c2807e7a1 1 parent 56e30fc
@caruccio authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  remotes
View
2  remotes
@@ -135,7 +135,7 @@ def repo_is_empty():
arguments = [ git, 'log', '-1', '--pretty=format:%h' ]
proc = subprocess.Popen(arguments, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
stdout, stderr = proc.communicate()
- return not stdout
+ return proc.returncode != 0 or not stdout
def clone_remote(config, remote, giturl):
assert config and giturl and project, 'Invalid parameters (%s, %s, %s)' % (config, project, giturl)
Please sign in to comment.
Something went wrong with that request. Please try again.