Page MenuHomePhabricator

Fix various branch/ref issues with bare repositories in Git
ClosedPublic

Authored by epriestley on Oct 30 2013, 3:39 AM.
Tags
None
Referenced Files
F20866572: D7442.id16766.diff
Fri, Jun 26, 8:42 AM
Unknown Object (File)
Mon, Jun 15, 4:14 PM
Unknown Object (File)
Thu, Jun 11, 7:39 PM
Unknown Object (File)
Apr 11 2026, 9:20 PM
Unknown Object (File)
Feb 12 2026, 7:19 PM
Unknown Object (File)
Feb 3 2026, 10:31 PM
Unknown Object (File)
Jan 4 2026, 2:26 AM
Unknown Object (File)
Jan 3 2026, 5:51 PM
Subscribers

Details

Reviewers
btrahan
avivey
avive
Maniphest Tasks
Restricted Maniphest Task
Commits
Restricted Diffusion Commit
rP19124554d8b9: Fix various branch/ref issues with bare repositories in Git
Summary

Ref T2230. Although all the non-bare commands run fine in bare repos, not all of them do exactly the same thing.

This could use further cleanup, but at least get it working again for now.

Test Plan

Ran bin/repository pull, bin/repository discover, viewed Diffusion (looked at branch table), viewed a commit (looked at "Branches"), for bare and non-bare git repos.

Diff Detail

Branch
branchr
Lint
Lint Passed
Unit
Tests Passed

Event Timeline

Looks ok to me...

src/applications/repository/storage/PhabricatorRepository.php
793

maybe isWorkingCopyBare()?

epriestley updated this revision to Unknown Object (????).Oct 30 2013, 4:04 AM
  • hasBareWorkingCopy() -> isWorkingCopyBare()