Browse files

fix testing empty repo

  • Loading branch information...
1 parent 56e30fc commit 7f0dc60607f2230b0b535be6f8af1c8c2807e7a1 @caruccio committed Feb 22, 2013
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)

0 comments on commit 7f0dc60

Please sign in to comment.