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)
Wed, Dec 11, 3:51 PM
Unknown Object (File)
Sat, Nov 30, 1:40 PM
Unknown Object (File)
Wed, Nov 27, 11:58 AM
Unknown Object (File)
Wed, Nov 27, 1:49 AM
Unknown Object (File)
Tue, Nov 26, 3:08 PM
Unknown Object (File)
Tue, Nov 26, 3:08 PM
Unknown Object (File)
Tue, Nov 26, 3:08 PM
Unknown Object (File)
Tue, Nov 26, 2:57 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

Lint
Lint Skipped
Unit
Tests Skipped