Skip to content

Commit ca248b7

Browse files
author
alexandresalome
committed
fix #51 (error while getting list of references)
1 parent c495900 commit ca248b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Gitonomy/Git/ReferenceBag.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ protected function initialize()
343343
} catch (RuntimeException $e) {
344344
$output = $e->getOutput();
345345
$error = $e->getErrorOutput();
346-
if ($error !== '') {
346+
if ($error) {
347347
throw new RuntimeException('Error while getting list of references: '.$error);
348348
}
349349
}

0 commit comments

Comments
 (0)