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
Unknown Object (File)
Thu, Sep 12, 2:33 AM
Unknown Object (File)
Sat, Sep 7, 10:08 PM
Unknown Object (File)
Thu, Sep 5, 11:02 AM
Unknown Object (File)
Wed, Sep 4, 11:14 AM
Unknown Object (File)
Wed, Sep 4, 9:17 AM
Unknown Object (File)
Tue, Sep 3, 8:43 AM
Unknown Object (File)
Tue, Aug 27, 4:16 PM
Unknown Object (File)
Mon, Aug 26, 12:19 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

Lint
Lint Skipped
Unit
Tests Skipped

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()