Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
30e23a64
Unverified
Commit
30e23a64
authored
Apr 14, 2022
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(cli): fix `commit.gpgsign` test in `omz pr test`
parent
f1a5fb5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
cli.zsh
lib/cli.zsh
+3
-4
No files found.
lib/cli.zsh
View file @
30e23a64
...
@@ -573,14 +573,13 @@ function _omz::pr::test {
...
@@ -573,14 +573,13 @@ function _omz::pr::test {
# Rebase pull request branch against the current master
# Rebase pull request branch against the current master
_omz::log info
"rebasing PR #
$1
..."
_omz::log info
"rebasing PR #
$1
..."
local
gpgsign
local
ret
gpgsign
{
{
# Back up commit.gpgsign setting: use --local to get the current repository
# Back up commit.gpgsign setting: use --local to get the current repository
# setting, not the global one. If --local is not a known option, it will
# setting, not the global one. If --local is not a known option, it will
# exit with a 129 status code.
# exit with a 129 status code.
if
!
gpgsign
=
$(
command
git config
--local
commit.gpgsign 2>/dev/null
)
;
then
gpgsign
=
$(
command
git config
--local
commit.gpgsign 2>/dev/null
)
||
ret
=
$?
[[
$?
-ne
129
]]
||
gpgsign
=
$(
command
git config commit.gpgsign 2>/dev/null
)
[[
$ret
-ne
129
]]
||
gpgsign
=
$(
command
git config commit.gpgsign 2>/dev/null
)
fi
command
git config commit.gpgsign
false
command
git config commit.gpgsign
false
command
git rebase master ohmyzsh/pull-
$1
||
{
command
git rebase master ohmyzsh/pull-
$1
||
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment