Arc feature errors on Windows

Reproduction Instructions

  • Install php and git via scoop scoop install php git-with-openssh;
  • Enable curl in php;
  • Enable ssl certificates for curl;
  • php -i | grep curl > curl && curl.cainfo => C:\Users\vadim\scoop\apps\cacert\current\cacert.pem => C:\Users\vadim\scoop\apps\cacert\current\cacert.pem
  • cd <REPO> && arc feature <FEATURE_NAME>

Then I got:

*[2020-02-02 10:26:38] ERROR 8: Undefined offset: 1 at [C:\Users\vadim\opt\arcanist\src\repository\api\ArcanistGitAPI.php:1086]
arcanist(head=stable, ref.master=21a1828ea06c, ref.stable=729100955129), phutil(head=stable, ref.master=cc2a3dbf5903, ref.stable=034cf7cc3994)
  #0 ArcanistGitAPI::getAllBranches() called at [<arcanist>\src\workflow\ArcanistFeatureWorkflow.php:120]
  #1 ArcanistFeatureWorkflow::checkoutBranch(array) called at [<arcanist>\src\workflow\ArcanistFeatureWorkflow.php:86]
  #2 ArcanistFeatureWorkflow::run() called at [<arcanist>\scripts\arcanist.php:394]
[2020-02-02 10:26:38] ERROR 8: Undefined offset: 2 at [C:\Users\vadim\opt\arcanist\src\repository\api\ArcanistGitAPI.php:1086]
arcanist(head=stable, ref.master=21a1828ea06c, ref.stable=729100955129), phutil(head=stable, ref.master=cc2a3dbf5903, ref.stable=034cf7cc3994)
  #0 ArcanistGitAPI::getAllBranches() called at [<arcanist>\src\workflow\ArcanistFeatureWorkflow.php:120]
  #1 ArcanistFeatureWorkflow::checkoutBranch(array) called at [<arcanist>\src\workflow\ArcanistFeatureWorkflow.php:86]
  #2 ArcanistFeatureWorkflow::run() called at [<arcanist>\scripts\arcanist.php:394]
[2020-02-02 10:26:39] ERROR 8: Undefined offset: 3 at [C:\Users\vadim\opt\arcanist\src\repository\api\ArcanistGitAPI.php:1086]
arcanist(head=stable, ref.master=21a1828ea06c, ref.stable=729100955129), phutil(head=stable, ref.master=cc2a3dbf5903, ref.stable=034cf7cc3994)
  #0 ArcanistGitAPI::getAllBranches() called at [<arcanist>\src\workflow\ArcanistFeatureWorkflow.php:120]
  #1 ArcanistFeatureWorkflow::checkoutBranch(array) called at [<arcanist>\src\workflow\ArcanistFeatureWorkflow.php:86]
  #2 ArcanistFeatureWorkflow::run() called at [<arcanist>\scripts\arcanist.php:394]
[2020-02-02 10:26:39] ERROR 8: Undefined offset: 4 at [C:\Users\vadim\opt\arcanist\src\repository\api\ArcanistGitAPI.php:1086]
arcanist(head=stable, ref.master=21a1828ea06c, ref.stable=729100955129), phutil(head=stable, ref.master=cc2a3dbf5903, ref.stable=034cf7cc3994)
  #0 ArcanistGitAPI::getAllBranches() called at [<arcanist>\src\workflow\ArcanistFeatureWorkflow.php:120]
  #1 ArcanistFeatureWorkflow::checkoutBranch(array) called at [<arcanist>\src\workflow\ArcanistFeatureWorkflow.php:86]
  #2 ArcanistFeatureWorkflow::run() called at [<arcanist>\scripts\arcanist.php:394]
[2020-02-02 10:26:39] ERROR 8: Undefined offset: 5 at [C:\Users\vadim\opt\arcanist\src\repository\api\ArcanistGitAPI.php:1086]
arcanist(head=stable, ref.master=21a1828ea06c, ref.stable=729100955129), phutil(head=stable, ref.master=cc2a3dbf5903, ref.stable=034cf7cc3994)
  #0 ArcanistGitAPI::getAllBranches() called at [<arcanist>\src\workflow\ArcanistFeatureWorkflow.php:120]
  #1 ArcanistFeatureWorkflow::checkoutBranch(array) called at [<arcanist>\src\workflow\ArcanistFeatureWorkflow.php:86]
  #2 ArcanistFeatureWorkflow::run() called at [<arcanist>\scripts\arcanist.php:394]
Branch 'test' set up to track local branch 'master'.*

Phabricator/Arcanist Version
arcanist 729100955129851a52588cdfd9b425197cf05815 (30 Jan 2020)
libphutil 034cf7cc39940b935e83923dbb1bacbcfe645a85 (30 Jan 2020)

arc diff works just fine, so there is something with arc feature command.

  1. Which version of Git do you have?
  2. What’s the output of this command in your repository?
    git for-each-ref --format='%(refname),%(objectname),%(committerdate:raw),%(tree),%(subject)' -- refs/heads
  • git --version => git version 2.25.0.windows.1
  • git for-each-ref --format='%(refname),%(objectname),%(committerdate:raw),%(tree),%(subject)' --refs/heads refs/heads/master,2a39d450723e02209949b14c5a491b7bb7dd6658,1549541827 +0300,8b9ad31eda82b1952c009fb55e1a13b05ef3ddbb,Bump version: 0.1.1 → 0.1.2 refs/heads/repo_update,f0714b5b98ae7773179a420876ff0e177578a459,1580634725 +0300,0f973e5665ed2e83917fd98e651baeef6c9bbcaa,Refactored repo structure