jgm / jgm/gitit

Can't Edit Renamed Files

Open
#473 6 comments 1 reaction 0 assignees View on GitHub
Dominant language
Haskell
Stars
2.3k
Forks
231
PR merge metrics
No merged PRs in 30d

Description

This bug seems to impact all files which were renamed in git.

Repro Steps:
1. in an empty directory, gitit --print-default-config > my.conf
2. Edit my.conf, change require-authentication to "none"
3. run: gitit -f my.conf
4. in the wikidata directory, echo "test" > Foo.page
5. git add Foo.page && git commit -a -m"test1"
6. git mv Foo.page Bar.page && git commit -a -m"test2"
7. Go to the Bar page, and click "edit"

Expected: You are able to edit the file
Actual:

```
Happstack 7.3.7

Something went wrong here
Internal server error
Everything has stopped

The error was "UnknownError: parseChanges encountered odd number of fields"
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.