Skip to content

Commit 057189a

Browse files
committed
Merge branch 'hotfix/v5.39.X'
2 parents 07c2e7c + 51656b9 commit 057189a

11 files changed

Lines changed: 41 additions & 27 deletions

CHANGELOG.md

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

33
# Changelog
44

5+
## 5.39.2 (2026-03-25)
6+
7+
_Commits from: v5.39.1..HEAD_
8+
9+
### 📦 common-utils changes
10+
11+
#### Bug Fixes
12+
13+
- 🐛 remove unused preserve function and simplify parameter handling ([a04b680](https://github.com/tomgrv/devcontainer-features/commit/a04b680f7612f4ae4f4661d59643d0815008f312))
14+
15+
### 📦 gitutils changes
16+
17+
#### Bug Fixes
18+
19+
- 🐛 correct push logic and cleanup temporary branch handling ([4b8eaaa](https://github.com/tomgrv/devcontainer-features/commit/4b8eaaa1053f40a028fb4f4c2d6ffec098c4e66e))
20+
21+
### 📦 gitversion changes
22+
23+
#### Bug Fixes
24+
25+
- 🐛 add docker-in-docker to installsAfter list ([fdceec5](https://github.com/tomgrv/devcontainer-features/commit/fdceec5be65f5d5d624be4b06741bc74a3836a38))
26+
527
## 5.39.1 (2026-03-24)
628

729
_Commits from: v5.39.0..HEAD_
@@ -639,4 +661,4 @@ _Commits from: v5.25.0..HEAD_
639661

640662
---
641663

642-
_Generated on 2026-03-24 by [tomgrv/devcontainer-features](https://github.com/tomgrv/devcontainer-features)_
664+
_Generated on 2026-03-25 by [tomgrv/devcontainer-features](https://github.com/tomgrv/devcontainer-features)_

package-lock.json

Lines changed: 5 additions & 5 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.39.1",
3+
"version": "5.39.2",
44
"description": "Configure dev environment with devcontainer, gitflow, gitversion, git aliases & hooks. Can be used a devcontainer features",
55
"keywords": [
66
"dev",

src/common-utils/_zz_dispatch.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@ usage() {
2525
fi
2626
}
2727

28-
preserve() {
29-
echo $@ | while read -r line; do
30-
echo $line
31-
done
32-
}
33-
3428
# Determine caller directory and base name
3529
caller_basename=$(basename "${caller}")
3630
caller_dir=$(dirname "${caller}")
@@ -61,10 +55,10 @@ echo $(preserve $params)
6155

6256
if [ -x "${target}" ]; then
6357
zz_log i "Dispatching to executable target: ${target}" >&2
64-
exec "${target}" $(preserve $params)
58+
exec "${target}" $(echo $@)
6559
elif [ -f "${target}" ]; then
6660
zz_log i "Dispatching to subshell target: ${target}" >&2
67-
exec sh "${target}" $(preserve $params)
61+
exec sh "${target}" $(echo $@)
6862
else
6963
# Nothing found: show help and available utilities in the same directory
7064
zz_log w "No dispatch target found" && usage

src/common-utils/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "common-utils",
33
"name": "Common Utils",
44
"description": "Common utils for tomgrv/devcontainer-features",
5-
"version": "5.39.1",
5+
"version": "5.39.2",
66
"dependsOn": {
77
"ghcr.io/devcontainers/features/common-utils": {}
88
},

src/common-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tomgrv/common-utils",
3-
"version": "5.39.1",
3+
"version": "5.39.2",
44
"description": "Common utilities and helper scripts for devcontainer features",
55
"files": [
66
"_*.sh",

src/gitutils/_git-fix-base.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,18 +141,15 @@ zz_log i "Fast-forwarding '$target' branch"
141141
if ! git checkout "$target"; then
142142
zz_log e "Failed to checkout '$target' branch"
143143
exit 1
144-
elif [ -n "$push" ] &&! git push origin "$target"; then
145-
zz_log e "Failed to push '$target' branch to remote"
146-
exit 1
147144
fi
148145

149146
if ! git merge --ff-only "$temp"; then
150147
zz_log e "Failed to fast-forward '$target' branch"
151-
# Cleanup temp branch
152-
git branch -D "$temp" 2>/dev/null
148+
exit 1
149+
elif [ -n "$push" ] && ! git push origin "$target"; then
150+
zz_log e "Failed to push '$target' branch to remote"
153151
exit 1
154152
else
155-
# Cleanup temporary branch
156153
zz_log i "Cleaning up temporary branch"
157154
git branch -D "$temp"
158155
fi

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.39.0",
5+
"version": "5.39.2",
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.39.0",
3+
"version": "5.39.2",
44
"description": "Git utilities and aliases for development workflow",
55
"files": [
66
"_*.sh",

src/gitversion/devcontainer-feature.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
"id": "gitversion",
33
"name": "GitVersion feature",
44
"description": "Add gitversion to your devcontainer",
5-
"version": "5.38.6",
5+
"version": "5.39.2",
66
"dependsOn": {
77
"ghcr.io/devcontainers/features/docker-in-docker:2": "",
88
"ghcr.io/tomgrv/devcontainer-features/common-utils:5": ""
99
},
1010
"installsAfter": [
1111
"ghcr.io/tomgrv/devcontainer-features/common-utils",
12+
"ghcr.io/devcontainers/features/docker-in-docker",
1213
"ghcr.io/devcontainers/features/dotnet"
1314
],
1415
"options": {

0 commit comments

Comments
 (0)