We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce2f9b7 commit 3d70f35Copy full SHA for 3d70f35
1 file changed
src/Gitonomy/Git/Repository.php
@@ -315,11 +315,13 @@ public function getWorkingCopy()
315
/**
316
* Returns the reference list associated to the repository.
317
*
318
+ * @param bool $reload Reload references from the filesystem
319
+ *
320
* @return ReferenceBag
321
*/
- public function getReferences()
322
+ public function getReferences($reload = false)
323
{
- if (null === $this->referenceBag) {
324
+ if (null === $this->referenceBag || $reload) {
325
$this->referenceBag = new ReferenceBag($this);
326
}
327
0 commit comments