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

Add check for running in the root of the repository #1438

Merged

Conversation

jdbaldry
Copy link
Member

@jdbaldry jdbaldry commented Dec 4, 2023

$ ../scripts/apply-patch HEAD~ sources/next sources/v0.47.x
ERROR: Script has not been run from the repository root ('/Users/jdb/ext/grafana/k6-docs').
Please change directory there and adjust argument paths to match the new working directory.

Closes: #1435

Signed-off-by: Jack Baldry jack.baldry@grafana.com

```console
$ ../scripts/apply-patch HEAD~ sources/next sources/v0.47.x
ERROR: Script has not been run from the repository root ('/Users/jdb/ext/grafana/k6-docs').
Please change directory there and adjust argument paths to match the new working directory.
```

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
scripts/apply-patch Outdated Show resolved Hide resolved
Co-authored-by: Heitor Tashiro Sergent <heitortsergent@gmail.com>
@heitortsergent heitortsergent merged commit bab29b7 into main Dec 4, 2023
5 checks passed
@heitortsergent heitortsergent deleted the jdb/2023-12-better-error-messages-for-apply-patch branch December 4, 2023 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update error message for patch script when running it outside of root folder
2 participants