Skip to content

Commit

Permalink
fix testing empty repo
Browse files Browse the repository at this point in the history
  • Loading branch information
caruccio committed Feb 22, 2013
1 parent 56e30fc commit 7f0dc60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion remotes
Expand Up @@ -135,7 +135,7 @@ def repo_is_empty():
arguments = [ git, 'log', '-1', '--pretty=format:%h' ] arguments = [ git, 'log', '-1', '--pretty=format:%h' ]
proc = subprocess.Popen(arguments, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) proc = subprocess.Popen(arguments, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
stdout, stderr = proc.communicate() stdout, stderr = proc.communicate()
return not stdout return proc.returncode != 0 or not stdout


def clone_remote(config, remote, giturl): def clone_remote(config, remote, giturl):
assert config and giturl and project, 'Invalid parameters (%s, %s, %s)' % (config, project, giturl) assert config and giturl and project, 'Invalid parameters (%s, %s, %s)' % (config, project, giturl)
Expand Down

0 comments on commit 7f0dc60

Please sign in to comment.