joseluisq / joseluisq/gitnow

Missing argument when using move

Open Beginner friendly
#64 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
490
Forks
27
PR merge metrics
No merged PRs in 30d

Description

Using the move command makes it move to the new branch but throw out this error.

`fish, version 4.8.0`

```
move main
[: Missing argument at index 3
main =
^

~/.config/fish/conf.d/gitnow.fish (line 468):
if [ "$v_branch" = (__gitnow_current_branch_name) ]
^
in function 'move' with arguments 'main'

Switched to branch 'main'
Your branch is up to date with 'origin/main'.
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at ~/.config/fish/conf.d/gitnow.fish around line 468 and inspect the move function's branch comparison. Reproduce the issue with `move main` in fish 4.8.0, then verify the command switches branches without the missing-argument error.

Written by the indexing model from the issue text.

Assessment

Tech stack
fish, git
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
75/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.