buildscript: fix fetch step #153

Closed
fbl wants to merge 1 commits from fbl:fetch into master
Owner

git pull combines two steps: fetch and merge. When checking out
another revision into an existing build directory, git pull tries to merge
the changes from the new revision into the current HEAD, before checking
out the new revision with git checkout. Because we apply various patches
to OpenWrt, the merge step almost certainly fails, so the new revision
is not checked out.

As the merge isn't needed anyway, use git fetch instead, which only
fetches updates from the remote without actually applying them.

Signed-off-by: Fabian Bläse fabian@blaese.de

git pull combines two steps: fetch and merge. When checking out another revision into an existing build directory, git pull tries to merge the changes from the new revision into the current HEAD, before checking out the new revision with git checkout. Because we apply various patches to OpenWrt, the merge step almost certainly fails, so the new revision is not checked out. As the merge isn't needed anyway, use git fetch instead, which only fetches updates from the remote without actually applying them. Signed-off-by: Fabian Bläse <fabian@blaese.de>
fbl added the
build/scripts/tools
label 2021-07-09 17:44:44 +02:00
fbl added 1 commit 2021-07-09 17:44:44 +02:00
b212c08272 buildscript: fix fetch step
git pull combines two steps: fetch and merge. When checking out
another revision into an existing build directory, git pull tries to merge
the changes from the new revision into the current HEAD, before checking
out the new revision with git checkout. Because we apply various patches
to OpenWrt, the merge step almost certainly fails, so the new revision
is not checked out.

As the merge isn't needed anyway, use git fetch instead, which only
fetches updates from the remote without actually applying them.

Signed-off-by: Fabian Bläse <fabian@blaese.de>
Author
Owner

Dieser Pull Request sucht noch Reviewer.

Dieser Pull Request sucht noch Reviewer.
Author
Owner

applied.

applied.
fbl closed this pull request 2021-08-05 17:47:04 +02:00
fbl deleted branch fetch 2021-08-05 17:47:09 +02:00

Pull request closed

Sign in to join this conversation.
No description provided.