mirror of
https://github.com/kowainik/hit-on.git
synced 2024-08-16 23:50:24 +03:00
Fix ubuntu CI
This commit is contained in:
parent
3f34503ce1
commit
d67b274109
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
21
README.md
21
README.md
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user