This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

building error / Branch error. git merge. git pull. west update

Everything worked on friday.

but after a git pull and west update on Master branch.   but instead of Master branch is an unknown number, or a hash. this happens on everyone but  not on nrf directory it stays in Master.

I found out that after west update it create a new branch called manifest-rev. I deleted the new branch but it still reappere when I do west update. I tried to merge it in to master. but nothing is working. I also try to reatach the HEAD since is detached.

USN+103438@S-HVE9127 MINGW64 /c/ncs/zephyr ((d70aa052bc...))
$ git branch
* (HEAD detached at refs/heads/manifest-rev)
manifest-rev
master

I also saw the log

USN+103438@S-HVE9127 MINGW64 /c/ncs/zephyr ((d70aa052bc...))
$ git log
commit d70aa052bc4b333e97a36b4e5832a8509b4aa417 (HEAD, manifest-rev)
Author: Håkon Øye Amundsen <haakon.amundsen@nordicsemi.no>
Date: Fri Apr 5 23:44:01 2019 +0200

cmake: re-apply patch needed for multi image

Without this patch multi image builds will fail
as the modules' build directories are the same
for each image, resulting in an error.

With this patch, each module build dir is placed
within each images build dir, making them unique.

Signed-off-by: Håkon Øye Amundsen <haakon.amundsen@nordicsemi.no>

commit 156cc434efb7e0d94a70887207fecc189e2b0c4f
Merge: 6396ec420f 7eca2568bd
Author: Robert Lubos <robert.lubos@nordicsemi.no>
Date: Thu Apr 4 16:03:24 2019 +0200

[nrf mergeup] Merge upstream up to commit 7eca256

but after these changes nothing is working.

I browsed the web for anwers about how to handle gitbash. but I fucking give up.

Parents
  • Hi Henning,

    Please note that when updating repositories, you should only need to pull the latest update in the nrf repo and then just do a: west update

    This is to bring the project repositories to a matching revision defined by the manifest file.

    Documentation for updating the repositories.

  • I've done west update. but it comes back with a hash instead of MASTER. didn't you read the issue above? sorry a bit crancky cause I'va been sitting thw whole day with this thing.

    to check if ive done something wrong.

    1.  I've deleted the local repos.

    2. Clone them agian. and cloned the scripts etc.

    3. then i've initiate west whit.  west init -l (small L) nrf in the ncs directory.

    4. Then west update. but instead of MASTER, it comes back with a hash.

    5. to check what that hash is, I wrote " git branch "  there i get * (HEAD detached at refs/heads/manifest-rev)
      and a extra branch called "manifest-rev"

    6. I tried to fixe the HEAD by reattche it and then merge the manifest-rev with master. even tried to delete it, but it reappare afte west update.

Reply
  • I've done west update. but it comes back with a hash instead of MASTER. didn't you read the issue above? sorry a bit crancky cause I'va been sitting thw whole day with this thing.

    to check if ive done something wrong.

    1.  I've deleted the local repos.

    2. Clone them agian. and cloned the scripts etc.

    3. then i've initiate west whit.  west init -l (small L) nrf in the ncs directory.

    4. Then west update. but instead of MASTER, it comes back with a hash.

    5. to check what that hash is, I wrote " git branch "  there i get * (HEAD detached at refs/heads/manifest-rev)
      and a extra branch called "manifest-rev"

    6. I tried to fixe the HEAD by reattche it and then merge the manifest-rev with master. even tried to delete it, but it reappare afte west update.

Children