mirror of
https://github.com/lupyuen/nuttx-forgejo.git
synced 2025-01-12 14:48:29 +08:00
Clean up
This commit is contained in:
parent
b844b79044
commit
eec3e47893
1 changed files with 8 additions and 4 deletions
|
@ -13,15 +13,19 @@ tmp_dir=/tmp/sync-mirror-to-update
|
|||
rm -rf $tmp_dir
|
||||
mkdir $tmp_dir
|
||||
cd $tmp_dir
|
||||
git clone https://nuttx-forge.org/nuttx/nuttx-mirror upstream
|
||||
git clone git@nuttx-forge:nuttx/nuttx-mirror upstream
|
||||
git clone git@nuttx-forge:nuttx/nuttx-update downstream
|
||||
|
||||
## Find the First Commit to Sync
|
||||
pushd downstream
|
||||
downstream_commit=$(git rev-parse HEAD)
|
||||
popd
|
||||
set +x ; echo "**** Last Upstream Commit" ; set -x
|
||||
pushd upstream
|
||||
upstream_commit=$(git rev-parse HEAD)
|
||||
git --no-pager log -1
|
||||
popd
|
||||
set +x ; echo "**** Last Downstream Commit" ; set -x
|
||||
pushd downstream
|
||||
downstream_commit=$(git rev-parse HEAD)
|
||||
git --no-pager log -1
|
||||
popd
|
||||
|
||||
## If no new Commits to Sync: Quit
|
||||
|
|
Loading…
Reference in a new issue