Skip to content

Commit 3d70f35

Browse files
authored
Allow reload references from filesystem (#179)
1 parent ce2f9b7 commit 3d70f35

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Gitonomy/Git/Repository.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -315,11 +315,13 @@ public function getWorkingCopy()
315315
/**
316316
* Returns the reference list associated to the repository.
317317
*
318+
* @param bool $reload Reload references from the filesystem
319+
*
318320
* @return ReferenceBag
319321
*/
320-
public function getReferences()
322+
public function getReferences($reload = false)
321323
{
322-
if (null === $this->referenceBag) {
324+
if (null === $this->referenceBag || $reload) {
323325
$this->referenceBag = new ReferenceBag($this);
324326
}
325327

0 commit comments

Comments
 (0)