fix: let git handle commit message formatting directly
This commit is contained in:
+1
-1
@@ -159,7 +159,7 @@ update_repo() {
|
||||
local old_sha
|
||||
old_sha=$(git rev-parse HEAD)
|
||||
git fetch origin && git reset --hard origin/master && git clean -fd &>/dev/null
|
||||
printf "\033[1;34m%s\033[0m\n" "$(git log --format='%C(yellow)%h%C(reset) %C(cyan)%ar%C(reset) %s' "$old_sha"..HEAD)"
|
||||
git log --format='%C(yellow)%h%C(reset) %C(cyan)%ar%C(reset) %s' "$old_sha"..HEAD
|
||||
else
|
||||
info "Repository not found. Cloning..."
|
||||
git clone --depth=1 "$REPO_URL" "$TARGET_DIR" &>/dev/null
|
||||
|
||||
@@ -33,7 +33,7 @@ dotstate_update() {
|
||||
local old_sha
|
||||
old_sha=$(git rev-parse HEAD)
|
||||
git fetch origin &>/dev/null && git reset --hard origin/master &>/dev/null && git clean -fd &>/dev/null
|
||||
printf "\033[1;34m%s\033[0m\n" "$(git log --format='%C(yellow)%h%C(reset) %C(cyan)%ar%C(reset) %s' "$old_sha"..HEAD)"
|
||||
git log --format='%C(yellow)%h%C(reset) %C(cyan)%ar%C(reset) %s' "$old_sha"..HEAD
|
||||
cd ~
|
||||
dotstate activate &>/dev/null
|
||||
exec zsh
|
||||
|
||||
Reference in New Issue
Block a user