Creating new git hosted repository

When creating a new git-based hosted repository through Diffusion, no initial commit is put on master. Therefore, it is impossible to land onto the new repository because there is nothing to land onto.

Specifically, arc land gives the error: Branch "master" does not exist in remote "origin".

Reproduction Instructions

  • Create new repository via diffusion
  • Checkout a branch and write a commit
  • Use arc diff to create a new revision
  • Use arc land to land the revision

Phabricator/Arcanist Version
phabricator

37e26f1b45315872a2483cc76a5037f0524ac03a (Wed, Jun 19)

arcanist

7329bc7c32b995a7dce0319723857cbdf4f95a91 (May 23 2019)

phutil

ada64585035e8fbdf5d0dd6abfb6c13e6b160b7d (Mon, Jun 17)

phabulous

a66c78b847f5f02b95fd8bccc87ca11c1dcd4ad4 (Sep 11 2016)

php

7.2.19-1+ubuntu16.04.1+deb.sury.org+1

diff

3.3 at /usr/bin/diff

git

2.7.4 at /usr/bin/git

hg

Not Available

pygmentize

2.1 at /usr/bin/pygmentize

svn

Not Available

See https://secure.phabricator.com/T12876.

Currently, arc requires the remote branch exist. Use git push to create master normally, then you can use arc from there.

@epriestley thanks for responding so quickly! I wasn’t sure if pushing up like that would be alright, but Phabricator correctly picked up on the change, etc., and my commit landed correctly.

(Also, for what it’s worth, I’ve been using Phabricator for a few years and I love using it. Your documentation is also hilarious. My favorite so far is Port Multiplexing in https://secure.phabricator.com/book/phabricator/article/diffusion_hosting/#sshd-port-assignment)