fork-dev / TrackerWin

Bug and issue tracker for Fork for Windows
463 stars 10 forks source link

[Bug] Commit and push not working for uninitialized remotes #1065

Open DHentzschel opened 3 years ago

DHentzschel commented 3 years ago

I recently found out Commit and push doesn't work when trying to commit and push the first commit of a repo (remote is empty)

Requirements

git-fork version 1.57.0.0 An empty remote project, I'm using a gitea project.

How to reproduce

Select an empty folder using File - Init New Repository and confirm Create remote repo (for me it's gitea) Add remote to local repo (I have 2FA enabled so I only work with SSH URLs) Stage untracked changes Type in a commit message and click the downwards arrow, select Commit and push to also push it to remote

Result

The activity manager shows me there were only two activities Add to origin and Commit 1 file, no errors, just normal behavior - but no push. Checking the gitea project remains in having an empty repo.

Workaround

Do not use Commit and push for repos that are not initialized yet until this issue is fixed. Use Commit only and push the content in a separate call

RockAndRollBot commented 3 years ago

I've been running into this as well and have to use the noted workaround. If it's helpful to know, our remotes are on Microsoft DevOps.