Skip to content

fix: patchable worktree initialization#977

Merged
nightkr merged 1 commit intospike/patchablefrom
fix/patchable-worktree-init
Jan 17, 2025
Merged

fix: patchable worktree initialization#977
nightkr merged 1 commit intospike/patchablefrom
fix/patchable-worktree-init

Conversation

@dervoeti
Copy link
Copy Markdown
Member

Description

Running patchable for the first time failed on my machine with the error:

fatal: not a git repository: '/home/voeti/stackable/docker-images/druid/patchable-work/worktree/26.0.0/.git'

It looks like git rev-parse --git-dir throws this error because the worktree directory is not present yet in my case.

@dervoeti dervoeti requested a review from nightkr January 17, 2025 14:24
@dervoeti dervoeti changed the base branch from main to spike/patchable January 17, 2025 14:26
@nightkr nightkr merged commit a2bc01a into spike/patchable Jan 17, 2025
@nightkr nightkr deleted the fix/patchable-worktree-init branch January 17, 2025 15:07
github-merge-queue Bot pushed a commit that referenced this pull request Feb 17, 2025
* Add authorship information to Druid 26.0.0 patches

* Add patchable checkout script

* Add patchable export script, convert Druid 26.0.0 patches to patchable

* Scrub commit IDs

* Remove patch count from header

* Add test patches

* Rebase in test patch

* Add docs

* fix: patchable worktree initialization (#977)

* Start rewriting patchable in Rust

* Logging

* Fix broken initial checkout

* Fetch commits individually from upstream instead of cloning

* Make commit IDs deterministic

* Reimplement git-am for better determinism

* Mailsplit each patch file separately

* Simplify worktree checkout logic a bit

* Forward logging from libgit2

* Normalize commits before exporting

* Factor out implementation details from main()

* Modularize

* Start handling errors

* Factor out patch mail parsing

* More error handling

* Snafuize the remaining errors

* Shrink the error types a bit

* Move patchable to rust/patchable for consistency

* Docs

* Remove obsolete patchable.nu

* Add patchable init

* Enforce that base must be a commit ID in patchable.toml

* Ensure that init always fetches base from upstream

* Print worktree directory on checkout

Also move logs to stderr to avoid confusion

* Document how to rebase patch series

* Remove dummy patches

* Documentation and cleanup

* Remove git version suffix from patches

* Skip comments in series file

* Document how to import invalid patch series into patchable

* More documentation

* Add openssl to shell.nix

* Reword docs following @soenkeliebau's comments

#1003 (comment)

* Then begone

* Changelog

* Fix gitignore EOLs

* Update README.md

Co-authored-by: Nick <10092581+NickLarsenNZ@users.noreply.github.com>

* Update README.md

Co-authored-by: Nick <10092581+NickLarsenNZ@users.noreply.github.com>

* Fix FMPP update patch metadata

---------

Co-authored-by: Lukas Krug <lukas.voetmand@stackable.tech>
Co-authored-by: Nick <10092581+NickLarsenNZ@users.noreply.github.com>
dervoeti added a commit that referenced this pull request Feb 26, 2025
* Add authorship information to Druid 26.0.0 patches

* Add patchable checkout script

* Add patchable export script, convert Druid 26.0.0 patches to patchable

* Scrub commit IDs

* Remove patch count from header

* Add test patches

* Rebase in test patch

* Add docs

* fix: patchable worktree initialization (#977)

* Start rewriting patchable in Rust

* Logging

* Fix broken initial checkout

* Fetch commits individually from upstream instead of cloning

* Make commit IDs deterministic

* Reimplement git-am for better determinism

* Mailsplit each patch file separately

* Simplify worktree checkout logic a bit

* Forward logging from libgit2

* Normalize commits before exporting

* Factor out implementation details from main()

* Modularize

* Start handling errors

* Factor out patch mail parsing

* More error handling

* Snafuize the remaining errors

* Shrink the error types a bit

* Move patchable to rust/patchable for consistency

* Docs

* Remove obsolete patchable.nu

* Add patchable init

* Enforce that base must be a commit ID in patchable.toml

* Ensure that init always fetches base from upstream

* Print worktree directory on checkout

Also move logs to stderr to avoid confusion

* Document how to rebase patch series

* Remove dummy patches

* Documentation and cleanup

* Remove git version suffix from patches

* Skip comments in series file

* Document how to import invalid patch series into patchable

* More documentation

* Add openssl to shell.nix

* Reword docs following @soenkeliebau's comments

#1003 (comment)

* Then begone

* Changelog

* Fix gitignore EOLs

* Update README.md

Co-authored-by: Nick <10092581+NickLarsenNZ@users.noreply.github.com>

* Update README.md

Co-authored-by: Nick <10092581+NickLarsenNZ@users.noreply.github.com>

* Fix FMPP update patch metadata

---------

Co-authored-by: Lukas Krug <lukas.voetmand@stackable.tech>
Co-authored-by: Nick <10092581+NickLarsenNZ@users.noreply.github.com>
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.

2 participants