Page MenuHomePhabricator

Make Phabricator clone bare git repositories
ClosedPublic

Authored by epriestley on Oct 27 2013, 4:12 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 21, 4:49 AM
Unknown Object (File)
Wed, Dec 11, 3:51 PM
Unknown Object (File)
Sat, Nov 30, 1:40 PM
Unknown Object (File)
Nov 27 2024, 11:58 AM
Unknown Object (File)
Nov 27 2024, 1:49 AM
Unknown Object (File)
Nov 26 2024, 3:08 PM
Unknown Object (File)
Nov 26 2024, 3:08 PM
Unknown Object (File)
Nov 26 2024, 3:08 PM
Subscribers

Details

Reviewers
btrahan
Maniphest Tasks
Restricted Maniphest Task
Commits
Restricted Diffusion Commit
rP59922b78b9bc: Make Phabricator clone bare git repositories
Summary

This doesn't really impact anything very much, but is a little cleaner than cloning repositories with a working copy. It's somewhat important for allowing pushes, because you can't push to a checked-out branch.

Mercurial has a similar option (--noupdate) but leave that alone for now.

The origin stuff was mostly for sanity/explicitness purposes -- I believe it's safe to remove in all non-ridiculous cases. Git fails with it in bare repositories (it automatically creates an origin, but doesn't create the local refs for it, or something).

Test Plan

Nuked a repo, re-cloned it, pulled and updated it several times. Browsed both bare and non-bare repos in Diffusion.

Diff Detail

Branch
redit19
Lint
Lint Passed
Unit
Tests Passed