Fix ubuntu CI

This commit is contained in:
Veronika Romashkina 2020-11-06 13:35:23 +00:00
parent 3f34503ce1
commit d67b274109
No known key found for this signature in database
GPG Key ID: 4C5DE1287782218B
2 changed files with 25 additions and 0 deletions

View File

@ -43,6 +43,10 @@ jobs:
cabal configure --enable-tests --enable-benchmarks --test-show-details=direct
cabal build --enable-tests --enable-benchmarks
- name: origin/HEAD
if: matrix.os == 'ubuntu-latest'
run: git remote set-head origin -a
- name: Test
if: matrix.os != 'macOS-latest'
run: cabal test

View File

@ -397,6 +397,27 @@ hit log [COMMIT_HASH]
[git]: https://git-scm.com/
## Troubleshooting
If you see
```shell
$ hit hop
fatal: ambiguous argument 'origin/HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
hit: readCreateProcess: git "rev-parse" "--abbrev-ref" "origin/HEAD" (exit 128): failed
origin/master
...skipping...
```
then you can run
```shell
$ git remote set-head origin -a
```
to synchronise with the remote, fetch and set `origin/HEAD` locally.
## Acknowledgement
Icons made by [Freepik](http://www.freepik.com) from