Commit 94f66dc
committed
Correct refspec to fetch Ruby source
`git fetch master:master` means synchronization of the remote `master` with
the local `master`. If the local `master` is `HEAD`, Git will also try to
update the file tree, but it is refused by default. Thus, we may see the
errors like `fatal: Refusing to fetch into current branch refs/heads/master
of non-bare repository`.
One of solutions is using `--update-head-ok` (`-u`) flag. It enforces to
update the file tree on fetching `HEAD`. However, it seems not good to
me because the Rake task uses `git checkout` after this `git fetch` so
the file system updation on fetch is unnecessary.
Another solution, by using this, is correcting refspec so that destination
part becomes `origin`. Presumably, this is the canonical fix method.
I'm not sure why the CI have been passed. Maybe GitHub returns a different (optimized) response on CI.1 parent 87d57b3 commit 94f66dc
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments