wei / git-sync

🔃 A GitHub Action for syncing between two independent repositories using force push
254 stars 124 forks source link

fatal: 'HEAD' is not a valid branch name. #36

Open bensuperpc opened 3 years ago

bensuperpc commented 3 years ago

I have issues, when i sync my repos, git-sync create HEAD branch, when i pull all repos with action/checkout, i have this issue :

  /usr/bin/git checkout --progress --force -B HEAD refs/remotes/origin/HEAD
  Error: fatal: 'HEAD' is not a valid branch name.
  Error: The process '/usr/bin/git' failed with exit code 128

Config file: https://github.com/Bensuperpc/repo-sync/blob/main/.github/workflows/repo-sync.yml

I would like to sync the whole repository but without creating a HEAD branch

bensuperpc commented 3 years ago

Pull request : #37