HomePhabricator

Semi-fix git cloning for non-bare repos for landing

Description

Semi-fix git cloning for non-bare repos for landing

Summary:
If the repo isn't bare, than we need copy it's remote instead of using it.

This will probably not work if an SSH key is provided to phabricator, and in any case you must delete
all workspaces that were already created.

This will make landing those repos slower; I plan to just delete and re-clone all repos on my instance.

It will probably be simpler to just make a bare-repo a requirement of all the git-landing work.

Test Plan: landed from hosted and un-hosted repos, checked git-remote url in each newly cloned workspace.

Reviewers: epriestley, Blessed Reviewers

Reviewed By: epriestley

CC: Korvin, epriestley, aran

Differential Revision: https://secure.phabricator.com/D7592

Details

Provenance
aviveyAuthored on Dec 30 2013, 11:22 PM
epriestleyCommitted on Dec 30 2013, 11:22 PM
epriestleyPushed on Dec 30 2013, 11:22 PM
Reviewer
epriestley
Differential Revision
D7592: Semi-fix git cloning for non-bare repos for landing
Parents
rPda3be5071ba7: Give "delete Repository" a disabled style
Branches
Unknown
Tags
Unknown

Event Timeline