Skip to content

Commit 3a0ead1

Browse files
author
Thomas G.
committed
fix: 🐛 correct config handling
1 parent a16d58b commit 3a0ead1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/gitutils/alias.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"editLast": "git commit --amend --edit",
1010
"fixable": "git log --oneline $(git rev-parse --abbrev-ref --symbolic-full-name @{u})..HEAD",
1111
"fixAuthor": "git config \"${1---global}\" user.name \"$(git log -2 --pretty=format:'%an' | tail -1)\" && git config \"${1---global}\" user.email \"$(git log -2 --pretty=format:'%ae' | tail -1)\"",
12-
"fixConfig": "for alias in $(git config --global --get-regexp '^alias.' | grep '/tmp' | cut -d' ' -f1); do git config --global --unset $alias; done",
12+
"fixConfig": "git config --global --get-regexp '^alias.' | grep '/tmp' | cut -d' ' -f1 | while read -r alias; do git config --global --unset \"$alias\"; done",
1313
"fixMode": "git diff -p -R --no-color | grep -E \"^(diff|(old|new) mode)\" --color=never | git apply --allow-empty --no-index",
1414
"forceable": "git log --oneline $(echo $(git rev-parse --abbrev-ref --symbolic-full-name @{u};git log --merges --first-parent -1 --pretty=%h)| tail -1)..HEAD $*",
1515
"go": "git commit -m \"$1\" --all",

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.12.1",
5+
"version": "5.12.2",
66
"dependsOn": {
77
"ghcr.io/devcontainers/features/node:1": "lts",
88
"ghcr.io/tomgrv/devcontainer-features/common-utils:3": {

0 commit comments

Comments
 (0)