1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-24 14:30:56 +01:00
phorge-phorge/src
epriestley 1b40f7e540 Always initialize Git repositories with "git init", never with "git clone"
Summary:
Fixes T13448. We currently "git clone" to initialize repositories, but this will fetch too many refs if "Fetch Refs" is configured.

In modern Phabricator, there's no apparent reason to "git clone"; we can just "git init" instead. This workflow naturally falls through to an update, where we'll do a "git fetch" and pull in exactly the refs we want.

Test Plan:
  - Configured an observed repository with "Fetch Refs".
  - Destroyed the working copy.
  - Ran "bin/repository pull X --trace --verbose".
    - Before: saw "git clone" pull in the world.
    - After: saw "git init" create a bare empty working copy, then "git fetch" fill it surgically.

Both flows end up in the same place, this one is just simpler and does less work.

Maniphest Tasks: T13448

Differential Revision: https://secure.phabricator.com/D20894
2019-11-07 16:17:35 -08:00
..
__tests__ Use PhutilClassMapQuery instead of PhutilSymbolLoader 2015-08-14 07:49:01 +10:00
aphront Make HTTP/403 say "Yikes!" 2019-09-30 09:27:39 -07:00
applications Always initialize Git repositories with "git init", never with "git clone" 2019-11-07 16:17:35 -08:00
docs Add an "{anchor #xyz}" rule to Remarkup 2019-09-24 11:04:19 -07:00
extensions
infrastructure Force unified abstract block diffs into roughly usable shape 2019-09-30 10:44:07 -07:00
view Clean up "Revisions/Commits" table in Maniphest slightly 2019-10-31 12:29:53 -07:00
__phutil_library_init__.php
__phutil_library_map__.php Support querying projects by "Root Projects" in the UI, and "min/max depth" in the API 2019-10-31 12:56:33 -07:00