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

lakectl local gitignore end marker #6522

Merged
merged 7 commits into from
Sep 4, 2023
Merged

Conversation

nopcoder
Copy link
Contributor

@nopcoder nopcoder commented Sep 1, 2023

Fix #6521
Close #6308

- fix: fail to update local ignore on git root directory
@nopcoder nopcoder added the area/lakectl Issues related to lakeFS' command line interface (lakectl) label Sep 1, 2023
@nopcoder nopcoder self-assigned this Sep 1, 2023
@nopcoder nopcoder added the include-changelog PR description should be included in next release changelog label Sep 1, 2023
@nopcoder nopcoder requested a review from itaiad200 September 3, 2023 09:24
Copy link
Contributor

@itaiad200 itaiad200 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! just a single comment..

if updateIgnore {
if _, err := os.Stat(dir); !os.IsNotExist(err) {
gitDir, err := git.GetRepositoryPath(dir)
if err == nil && gitDir == dir {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if err isn't nil, aren't you silencing an error?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was assuming no git or no git repo - I will update the code to be explicit

@nopcoder nopcoder merged commit 10b3320 into master Sep 4, 2023
@nopcoder nopcoder deleted the chore/lakectl-local-marker branch September 4, 2023 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/lakectl Issues related to lakeFS' command line interface (lakectl) include-changelog PR description should be included in next release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Fatal error when using lakectl local and Git together git package: Add end marker to the ignore block
2 participants