Skip to content

Commit d6d655e

Browse files
committed
Merge branch 'hotfix/v5.38.X'
2 parents bc0cdb8 + 08dcf63 commit d6d655e

8 files changed

Lines changed: 34 additions & 13 deletions

File tree

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
# Changelog
44

5+
## 5.38.4 (2026-03-22)
6+
7+
_Commits from: v5.38.3..HEAD_
8+
9+
### 📦 gitutils changes
10+
11+
#### Bug Fixes
12+
13+
- 🐛 ensure develop branch is up-to-date before finishing release ([14a10d8](https://github.com/tomgrv/devcontainer-features/commit/14a10d826dd90dafec83e6351f1027e7dfc3331d))
14+
- 🐛 fix rebase ([a71f997](https://github.com/tomgrv/devcontainer-features/commit/a71f997a7297f1700df3be854e8ba9658416f1a3))
15+
516
## 5.38.3 (2026-03-21)
617

718
_Commits from: v5.38.2..HEAD_
@@ -531,4 +542,4 @@ _Commits from: v5.25.0..HEAD_
531542

532543
---
533544

534-
_Generated on 2026-03-21 by [tomgrv/devcontainer-features](https://github.com/tomgrv/devcontainer-features)_
545+
_Generated on 2026-03-22 by [tomgrv/devcontainer-features](https://github.com/tomgrv/devcontainer-features)_

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tomgrv/devcontainer-features",
3-
"version": "5.38.3",
3+
"version": "5.38.4",
44
"description": "Configure dev environment with devcontainer, gitflow, gitversion, git aliases & hooks. Can be used a devcontainer features",
55
"keywords": [
66
"dev",

src/gitutils/_git-fix-base.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ eval $(
66
p - push force push changes to remote
77
d - dryrun show what would be done without making changes
88
- target target target branch to rebase commits onto
9-
- source source source branch to take commits from (default: current branch)
9+
- source source source branch to take commits from (default: current branch)
1010
help
1111
)
1212

src/gitutils/_git-release-hotfix.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,15 @@ fi
4949
#### PREVENT GIT EDITOR PROMPT
5050
GIT_EDITOR=:
5151

52-
current=$(echo "$main" | sed -E 's/([0-9]+)\.([0-9]+)\.([0-9]+)/\1.\2.X/')
52+
hotfix=$(echo "$main" | sed -E 's/([0-9]+)\.([0-9]+)\.([0-9]+)/\1.\2.X/')
5353

5454
#### START HOTFIX
55-
git flow hotfix start $current
55+
git flow hotfix start $hotfix
5656

5757
#### RESTORE STATUS AND HANDLE REBASE
5858
if [ -n "$rebase" ]; then
5959

60-
zz_log i "Rebasing: inverting develop and hotfix branches..."
61-
62-
git fix base hotfix/$current develop
60+
zz_log i "Rebasing develop commits onto hotfix branch..."
61+
git fix base -p hotfix/$hotfix
6362
fi
6463

src/gitutils/_git-release-prod.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,17 @@ if bump-changelog -f $GBV -b -m; then
8282
zz_log s "Version & CHANGELOG committed and pushed"
8383
fi
8484

85+
# Ensure develop branch is up-to-date before finishing release
86+
if ! git fetch origin develop:develop; then
87+
zz_log e "Cannot fetch develop branch from remote"
88+
exit 1
89+
fi
90+
91+
if ! git merge-base --is-ancestor $(git rev-parse develop) $(git rev-parse origin/develop) ; then
92+
zz_log e "Develop branch is not up-to-date with remote. Please pull the latest changes."
93+
exit 1
94+
fi
95+
8596
if git flow $flow finish $name --push --tagname $GBV --message $GBV ; then
8697
zz_log s "Release finished: {B $GBV}"
8798
rm -f .git/RELEASE

src/gitutils/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "gitutils",
33
"name": "Git Aliases",
44
"description": "A feature to add useful Git aliases to your shell.",
5-
"version": "5.38.3",
5+
"version": "5.38.4",
66
"dependsOn": {
77
"ghcr.io/devcontainers/features/node:1": "lts",
88
"ghcr.io/tomgrv/devcontainer-features/common-utils:5": {

src/gitutils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tomgrv/gitutils",
3-
"version": "5.38.3",
3+
"version": "5.38.4",
44
"description": "Git utilities and aliases for development workflow",
55
"files": [
66
"_*.sh",

0 commit comments

Comments
 (0)