Skip to content

Conversation

@achilleas-k
Copy link
Member

@achilleas-k achilleas-k commented Feb 6, 2019

In direct mode (on Windows) the initial commit would fail since it was
trying to do 'git commit' inside a bare repository. Use 'git-annex sync'
instead to create the initial empty commit. This works in both direct
and indirect mode repositories.

Fixes #224.

@achilleas-k achilleas-k force-pushed the commit-empty-direct-fix branch from 97f5855 to 1208715 Compare February 6, 2019 16:39
In direct mode (on Windows) the initial commit would fail since it was
trying to do 'git commit' inside a bare repository. Use 'git-annex sync'
instead to create the initial empty commit.

In indirect mode this doesn't work, so for the standard case, git commit
--allow-empty will still be used.
@achilleas-k achilleas-k force-pushed the commit-empty-direct-fix branch 3 times, most recently from 8fdc255 to c413efc Compare February 6, 2019 19:31
Error field conversion to string would mistakenly add the error as a
second field called 'Err' instead of 'err'.  The temporary alias struct
needs to specify the `json` annotation as well during the aliasing.
@achilleas-k achilleas-k force-pushed the commit-empty-direct-fix branch from 1910aeb to fba6c7d Compare February 7, 2019 14:24
@mpsonntag mpsonntag merged commit 712b4ac into G-Node:master Feb 7, 2019
@achilleas-k achilleas-k deleted the commit-empty-direct-fix branch February 7, 2019 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants