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
F14069310: D7442.diff
Wed, Nov 20, 5:13 AM
F14060827: D7442.diff
Mon, Nov 18, 3:30 AM
F14053485: D7442.diff
Fri, Nov 15, 4:35 PM
F14043301: D7442.diff
Tue, Nov 12, 9:08 AM
F14025420: D7442.diff
Thu, Nov 7, 5:43 PM
F14001246: D7442.id16769.diff
Fri, Oct 25, 5:32 AM
F13987698: D7442.diff
Oct 21 2024, 10:49 AM
F13979623: D7442.id.diff
Oct 19 2024, 5:32 AM
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()