-
Notifications
You must be signed in to change notification settings - Fork 360
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
Conversation
- fix: fail to update local ignore on git root directory
There was a problem hiding this 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..
cmd/lakectl/cmd/local_init.go
Outdated
if updateIgnore { | ||
if _, err := os.Stat(dir); !os.IsNotExist(err) { | ||
gitDir, err := git.GetRepositoryPath(dir) | ||
if err == nil && gitDir == dir { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
Fix #6521
Close #6308