Skip to content

Commit 12ed044

Browse files
committed
Improve update scripts
1 parent 2df2866 commit 12ed044

4 files changed

Lines changed: 134 additions & 228 deletions

File tree

doc/MAINTENANCE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
## Upgrading the restic version
44

5-
1. Use `./scripts/update-restic.sh` to update the submodule. It automatically pushes a modified tag to the custom restic fork on Github.
5+
1. Use `./scripts/update-restic.sh pull vX.Y.Z` to update the submodule. It automatically pushes a modified tag to the custom restic fork on Github.
66
3. Use `go mod tidy` to fetch all the modules and remove the unused ones.
7-
4. Use `./scripts/update-cmd.sh` to update the repository opening code.
7+
4. Use `./scripts/update-restic.sh update-cmd` to update the repository opening code.
88
- If the patch fails, use `diff -u restic/cmd/restic/global.go cmd/git-remote-restic/restic.go > scripts/update-cmd.patch` to update it.
99
5. Use `make test` to verify everything still works.
1010
- Use `git log -pG <pattern>` to identify commits that changed APIs that are now broken.
1111
6. Update the VERSION file to the new version and update the README to indicate the correct version of restic.
1212
7. Make a commit.
1313
8. Use `make release` to compile a new release.
14-
9. Push everything to Github, and make a new release there.
14+
9. Push everything to Github, and make a new release there.

0 commit comments

Comments
 (0)