gitbash 1.3.1 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/commands/create.sh +14 -5
  2. package/package.json +1 -1
@@ -163,12 +163,21 @@ TYPES
163
163
 
164
164
  if [[ ${#positional_args[@]} -gt 0 ]]; then
165
165
  # Arguments provided - use one-liner mode
166
- jira_link="${positional_args[0]}"
167
- # Join remaining arguments as title
168
- if [[ ${#positional_args[@]} -gt 1 ]]; then
169
- branch_title="${positional_args[*]:1}"
166
+ # Use array index 1 for zsh compatibility (zsh arrays are 1-indexed, bash uses 0)
167
+ if [[ -n "${ZSH_VERSION:-}" ]]; then
168
+ jira_link="${positional_args[1]}"
169
+ if [[ ${#positional_args[@]} -gt 1 ]]; then
170
+ branch_title="${positional_args[*]:1}"
171
+ else
172
+ branch_title=""
173
+ fi
170
174
  else
171
- branch_title=""
175
+ jira_link="${positional_args[0]}"
176
+ if [[ ${#positional_args[@]} -gt 1 ]]; then
177
+ branch_title="${positional_args[*]:1}"
178
+ else
179
+ branch_title=""
180
+ fi
172
181
  fi
173
182
  else
174
183
  # Interactive mode
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitbash",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Opinionated git utilities for bash with fzf-powered menus",
5
5
  "author": "jaggli",
6
6
  "license": "MIT",