-
Notifications
You must be signed in to change notification settings - Fork 234
Add documentation workarounds for dubious ownership #986
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -91,6 +91,30 @@ The commit graph can be updated when fetching with `--write-commit-graph`: | |||||||||||||
| git fetch --write-commit-graph | ||||||||||||||
| ``` | ||||||||||||||
|
|
||||||||||||||
| ## Permission issues | ||||||||||||||
|
|
||||||||||||||
| When running a Sync Job on your local repositories, if you have a different user than the one that Sourcebot runs as | ||||||||||||||
| (in Docker, the Sourcebot user is 1500:1500), you may encounter the following error: | ||||||||||||||
|
|
||||||||||||||
| ```sh | ||||||||||||||
| fatal: detected dubious ownership in repository at '/repos/org_name/repo_name.git' | ||||||||||||||
| To add an exception for this directory, call: | ||||||||||||||
| git config --global --add safe.directory /repos/org_name/repo_name.git.git | ||||||||||||||
| ``` | ||||||||||||||
|
|
||||||||||||||
| As the code should be read-only by sourcebot, you can use the following [git-config environment variables](https://git-scm.com/docs/git-config#ENVIRONMENT) | ||||||||||||||
| to allow Sourcebot to read from any repository, regardless of ownership: | ||||||||||||||
|
Comment on lines
+105
to
+106
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion | 🟠 Major Break up this sentence and fix inconsistent capitalization. This sentence is too long. Break it into shorter, more direct sentences. Also, "sourcebot" should be capitalized as "Sourcebot" for consistency with the rest of the document. As per coding guidelines: "keep sentences short and direct, leading with what the user needs to know." ✍️ Proposed rewrite-As the code should be read-only by sourcebot, you can use the following [git-config environment variables](https://git-scm.com/docs/git-config#ENVIRONMENT)
-to allow Sourcebot to read from any repository, regardless of ownership:
+Sourcebot only needs read access to your repositories. You can use [git-config environment variables](https://git-scm.com/docs/git-config#ENVIRONMENT) to allow Sourcebot to read any repository, regardless of ownership:📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||
|
|
||||||||||||||
| ```sh | ||||||||||||||
| GIT_CONFIG_COUNT=1 | ||||||||||||||
| GIT_CONFIG_KEY_0=safe.directory | ||||||||||||||
| GIT_CONFIG_VALUE_0=* | ||||||||||||||
| ``` | ||||||||||||||
|
|
||||||||||||||
| If you're using docker-compose, this can be added to the `environment` section of the `sourcebot` service | ||||||||||||||
| in the [docker-compose](https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/docker-compose.yml) file, | ||||||||||||||
| otherwise you can set these environment variables in the environment where sourcebot is running. | ||||||||||||||
|
Comment on lines
+114
to
+116
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion | 🟠 Major Break up this run-on sentence and fix formatting inconsistencies. This sentence is too long and tries to cover multiple deployment scenarios. Break it into shorter sentences. Also:
As per coding guidelines: "keep sentences short and direct, leading with what the user needs to know" and "use inline code for technical values, flags, and identifiers." ✍️ Proposed rewrite-If you're using docker-compose, this can be added to the `environment` section of the `sourcebot` service
-in the [docker-compose](https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/docker-compose.yml) file,
-otherwise you can set these environment variables in the environment where sourcebot is running.
+If you're using `docker-compose`, add these variables to the `environment` section of the `sourcebot` service
+in the [docker-compose](https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/docker-compose.yml) file.
+Otherwise, set these environment variables in the environment where Sourcebot is running.📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||
|
|
||||||||||||||
| ## Schema reference | ||||||||||||||
|
|
||||||||||||||
| <Accordion title="Reference"> | ||||||||||||||
|
|
||||||||||||||
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.
🛠️ Refactor suggestion | 🟠 Major
Break up this long sentence and verify bold formatting.
This sentence is too long and complex. Break it into shorter, more direct sentences that lead with what the user needs to know. If "Sync Job" is a UI element or key term, it should be bolded.
As per coding guidelines: "write in second person ('you') and present tense, keep sentences short and direct, leading with what the user needs to know" and "use bold for UI elements and key terms."
✍️ Proposed rewrite
Or if "Sync Job" is a UI element:
📝 Committable suggestion
🤖 Prompt for AI Agents