Closed startergo closed 3 years ago
This is the content of the local RepoUpdater:
Sorry, I couldn't find what the issue being raised was in the posts made or in the title
The issue is that the output of repo updater is always:
I can run it 10 consecutive times it is still the same.
I think that "git reset --hard" should only be applied if the remote branch is reverted to a previous commit.
The above output is with both lines commented and running the script from outside RefindPlus folder.
Still don't understand.
As far as I can see, your two forks are aligned with the respective upstream repos which is what the outcome is supposed to be.
Still don't understand.
As far as I can see, your two forks are aligned with the respective upstream repos which is what the outcome is supposed to be.
When you make a change the issue will be more obvious. I will update the results.
Reviewed the outputs posted and done tests. The script is working correctly as it is supposed to. End result is always that your local and remote repos are synced with the upstream repo.
I have just updated the repo:
Then I looked at the changed file and compared with the contents of the local file:
}
else {
Status = refit_call3_wrapper(gBS->StartImage, ImageHandle, NULL, NULL);
}
}
MyFreePool (DecompressedImageBuffer);
}
}
As you can see the local file was not updated.
I deleted the contents of both local repos (without the hidden files) and ran the script again from outside the main RefindPlus folder (with hard reset pointing to the latest commits). Now the old RefindPlus folder inside EDK2 is gone and the AcquireGOP.c is directly under Efilib inside Working directory.
Still not seeing your issue and it is still not clear what the issue actually is from your posts. As far as I can see, your GitHub repos are synced which is how they are supposed to be after running the script.
If you can present a situation where you have run the script and your repos on GitHub are not synced with upstream, then there will be something to look into. That is, run the script and leave in the "broken" state to check as otherwise, things look to be working as expected.
Still not seeing your issue and it is still not clear what the issue actually is from your posts. As far as I can see, your GitHub repos are synced which is how they are supposed to be after running the script.
If you can present a situation where you have run the script and your repos on GitHub are not synced with upstream, then there will be something to look into. That is, run the script and leave in the "broken" state to check as otherwise, things look to be working as expected.
My GitHub repos automatically update without my intervention. I have issue matching my local folders with the github repo using the update script. Basically the script claims everything matches, but when I inspect the files manually that is not the case. If the repo commit number was included in the debug file it would have been easier to troubleshoot.
Well, what the script does is this:
It appears to be doing just that as I can map each of those steps to your outputs.
You were obviously running on synced repos since everything started and ended at 7252fc23.
Anyway, as far I can see, it is working as expected. Now, you might have a crash when running before the commit that fixed #7, but just run again and all should be synced.
As for debug log containing github commits, that one is not as good idea as it may sound.
Anyone that wants to build can easily make sure they are synced before doing a build. They will need to go and check that what they see there matches in the first place anyway. So why not just sync anyway?
BTW, if you already have something that syncs your remote with the upstream, then no need to use this script at all. Just sync your local with your remote yourself by using git pull.
Running the script from within its folder yields this:
Repo Updater
``` ## RepoUpdater ## ----------------- Syncing Refind-UDK Already on 'rudk' Your branch is up to date with 'origin/rudk'. HEAD is now at 56c1ccd8 Update gitignore Total 0 (delta 0), reused 0 (delta 0) To https://github.com/startergo/Refind-UDK.git + 029b4582...56c1ccd8 HEAD -> rudk (forced update) From https://github.com/dakanji/Refind-UDK * branch rudk -> FETCH_HEAD Updating 56c1ccd8..029b4582 Fast-forward 000-BuildScript/RepoUpdater.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Total 0 (delta 0), reused 0 (delta 0) To https://github.com/startergo/Refind-UDK.git 56c1ccd8..029b4582 rudk -> rudk Everything up-to-date Synced Refind-UDK Syncing RefindPlus Already on 'GOPFix' Your branch is up to date with 'origin/GOPFix'. HEAD is now at 60644bd Update for v0.12.0.AN Release Total 0 (delta 0), reused 0 (delta 0) To https://github.com/startergo/RefindPlus.git + 9054d73...60644bd HEAD -> GOPFix (forced update) remote: Enumerating objects: 8, done. remote: Counting objects: 100% (8/8), done. remote: Total 8 (delta 7), reused 8 (delta 7), pack-reused 0 Unpacking objects: 100% (8/8), done. From https://github.com/dakanji/RefindPlus * branch GOPFix -> FETCH_HEAD 9691685..9054d73 GOPFix -> upstream/GOPFix Updating 60644bd..9054d73 Fast-forward EfiLib/BdsConnect.c | 8 ++--- MainRP/driver_support.c | 146 +++++++++++++++++++++++++++-------------------------------------------------- MainRP/driver_support.h | 1 - MainRP/lib.c | 4 +-- MainRP/main.c | 173 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------ MainRP/menu.c | 6 ++-- MainRP/scan.c | 36 +++++++++---------- MainRP/screen.c | 100 ++++++++++++++++++++++++++++------------------------- MainRP/screen.h | 2 +- NEWS.txt | 7 ++++ README.md | 8 +++-- config.conf-sample | 123 ++++++++++++++++++++++++++++++++++++----------------------------- filesystems/RamDiskDxe/RamDiskFileExplorer.c | 2 +- filesystems/RamDiskDxe/RamDiskImpl.h | 2 +- include/version.h | 2 +- libeg/screen.c | 85 ++++++++------------------------------------- mountesp | 2 +- refind-install | 4 +-- 18 files changed, 383 insertions(+), 328 deletions(-) Total 0 (delta 0), reused 0 (delta 0) To https://github.com/startergo/RefindPlus.git 60644bd..9054d73 GOPFix -> GOPFix Everything up-to-date Synced RefindPlus ----------------- ## RepoUpdater ## g5@Big-Sur ~ % /Users/g5/Documents/RefindPlus/edk2/000-BuildScript/RepoUpdater.sh ## RepoUpdater ## ----------------- Syncing Refind-UDK Already on 'rudk' Your branch is up to date with 'origin/rudk'. HEAD is now at 56c1ccd8 Update gitignore Total 0 (delta 0), reused 0 (delta 0) To https://github.com/startergo/Refind-UDK.git + 029b4582...56c1ccd8 HEAD -> rudk (forced update) From https://github.com/dakanji/Refind-UDK * branch rudk -> FETCH_HEAD Updating 56c1ccd8..029b4582 Fast-forward 000-BuildScript/RepoUpdater.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Total 0 (delta 0), reused 0 (delta 0) To https://github.com/startergo/Refind-UDK.git 56c1ccd8..029b4582 rudk -> rudk Everything up-to-date Synced Refind-UDK Syncing RefindPlus Already on 'GOPFix' Your branch is up to date with 'origin/GOPFix'. HEAD is now at 60644bd Update for v0.12.0.AN Release Total 0 (delta 0), reused 0 (delta 0) To https://github.com/startergo/RefindPlus.git + 9054d73...60644bd HEAD -> GOPFix (forced update) From https://github.com/dakanji/RefindPlus * branch GOPFix -> FETCH_HEAD Updating 60644bd..9054d73 Fast-forward EfiLib/BdsConnect.c | 8 ++--- MainRP/driver_support.c | 146 +++++++++++++++++++++++++++-------------------------------------------------- MainRP/driver_support.h | 1 - MainRP/lib.c | 4 +-- MainRP/main.c | 173 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------ MainRP/menu.c | 6 ++-- MainRP/scan.c | 36 +++++++++---------- MainRP/screen.c | 100 ++++++++++++++++++++++++++++------------------------- MainRP/screen.h | 2 +- NEWS.txt | 7 ++++ README.md | 8 +++-- config.conf-sample | 123 ++++++++++++++++++++++++++++++++++++----------------------------- filesystems/RamDiskDxe/RamDiskFileExplorer.c | 2 +- filesystems/RamDiskDxe/RamDiskImpl.h | 2 +- include/version.h | 2 +- libeg/screen.c | 85 ++++++++------------------------------------- mountesp | 2 +- refind-install | 4 +-- 18 files changed, 383 insertions(+), 328 deletions(-) Total 0 (delta 0), reused 0 (delta 0) To https://github.com/startergo/RefindPlus.git 60644bd..9054d73 GOPFix -> GOPFix Everything up-to-date Synced RefindPlus ----------------- ## RepoUpdater ## ```Both git repositories are even with the remote branches