projects
/
openwrt
/
staging
/
dangole.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd9241d
)
scripts: fix revision calculation using new "main" branch
author
Marius Dinu
<
[email protected]
>
Tue, 21 May 2024 15:08:33 +0000
(18:08 +0300)
committer
Christian Marangi
<
[email protected]
>
Tue, 21 May 2024 15:53:33 +0000
(17:53 +0200)
Fix revision calculation when local branch is rebased on new "main" branch
instead of "master".
Signed-off-by: Marius Dinu <
[email protected]
>
Link:
https://github.com/openwrt/openwrt/pull/15538
Signed-off-by: Christian Marangi <
[email protected]
>
scripts/getver.sh
patch
|
blob
|
history
diff --git
a/scripts/getver.sh
b/scripts/getver.sh
index 61906040b18f974c3edd263e6ac14c22d3d5eda2..0659d8004a0170800ecf0d28bd7649355ac84cee 100755
(executable)
--- a/
scripts/getver.sh
+++ b/
scripts/getver.sh
@@
-26,7
+26,7
@@
try_git() {
*)
BRANCH="$(git rev-parse --abbrev-ref HEAD)"
ORIGIN="$(git rev-parse --verify --symbolic-full-name ${BRANCH}@{u} 2>/dev/null)"
- [ -n "$ORIGIN" ] || ORIGIN="$(git rev-parse --verify --symbolic-full-name ma
ster
@{u} 2>/dev/null)"
+ [ -n "$ORIGIN" ] || ORIGIN="$(git rev-parse --verify --symbolic-full-name ma
in
@{u} 2>/dev/null)"
REV="$(git rev-list ${REBOOT}..$GET_REV 2>/dev/null | wc -l | awk '{print $1}')"
if [ -n "$ORIGIN" ]; then