Update git.spec

Fix some errors from testing.
repos directory was not existing under sys-gui after install which made me review the spec file.
This commit is contained in:
tlaurion 2022-12-20 16:31:25 -05:00 committed by GitHub
parent 0e1c255aeb
commit f7d15a3563
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,8 +26,8 @@ git init --bare
```
## prepare client
Then prepare a qube by running:
`qubesctl --skip0-dom0 --targets=QUBE state.apply git.install_client`
Then prepare a qube by running in dom0:
`sudo qubesctl --skip0-dom0 --targets=QUBE state.apply git.install_client`
## Work in the client
Configure git, as necessary.
@ -39,17 +39,17 @@ git init
add-remote sg
```
You can then use that repository as usual, making commits.
To push to sys-git you must first-
To push to sys-git you must first:
`git push --set-upstream sg master`
After making more commits,
After making more commits:
`git push `
# Working with an existing repository
## prepare client, if necessary
Prepare a qube by running:
`qubesctl --skip0-dom0 --targets=QUBE state.apply git.install_client`
`sudo qubesctl --skip0-dom0 --targets=QUBE state.apply git.install_client`
## Clone the repository in the client
Configure git, as necessary.
@ -99,7 +99,7 @@ cp -rv %{SOURCE0}/ %{buildroot}/srv/salt
%post
if [ $1 -eq 1 ]; then
qubesctl state.apply git.create
qubesctl --skip-dom0 --targets=sys-git state.apply monero.install
qubesctl --skip-dom0 --targets=sys-git state.apply git.install
fi
%postun