Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report | git add subcommand does not work on new Git branches #1

Open
JosephLai241 opened this issue Aug 24, 2022 · 0 comments
Open
Assignees
Labels
beta This issue or feature should be resolved or implemented before an official release bug Something isn't working

Comments

@JosephLai241
Copy link
Owner

Describe The Bug

Running nd git add when adding (staging) files on a new branch will not work.

Expected Behavior

This subcommand should successfully stage a file by modifying the Git index.

Actual Behavior

nomad throws an error stating it is unable to stage files and does not modify the Git index.

Steps To Reproduce

  • git checkout a new branch.
  • Create a throwaway file and run nd git add <FILE_OR_DIRECTORY_IDENTIFIER>.
    • An error should be raised here stating nomad is unable to stage the file.

Traceback/Output

"Unable to stage files": Error { code: -9, klass: 4, message: "reference 'refs/heads/master' not found" }

Additional Context

According to the error that was returned, I may need to revisit how the Git refs are pulled from a repository.

@JosephLai241 JosephLai241 added bug Something isn't working beta This issue or feature should be resolved or implemented before an official release labels Aug 24, 2022
@JosephLai241 JosephLai241 self-assigned this Aug 24, 2022
@JosephLai241 JosephLai241 changed the title Bug Report | git add command does not work on new Git branches Bug Report | git add subcommand does not work on new Git branches Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta This issue or feature should be resolved or implemented before an official release bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant