Skip to content

config: fix evaluating "onbranch" with nonexistent git dir

Patrick Steinhardt git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2t1305: exercise edge cases of "onbranch" includest/t1305-config-include.sh+40 -01 reply
2/2config: fix evaluating "onbranch" with nonexistent git dirconfig.c t/t1305-config-include.sh+10 -72 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] config: fix evaluating "onbranch" with nonexistent git dir

Hi,

this small patch series fixes evaluating "includeIf.onbranch" conditions when running outside of a repository with an invalid gitdir.

Thanks!

Patrick

Patrick Steinhardt (2):
t1305: exercise edge cases of "onbranch" includes
config: fix evaluating "onbranch" with nonexistent git dir

 config.c                  | 15 +++++++++------
 t/t1305-config-include.sh | 40 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 49 insertions(+), 6 deletions(-)
Signature · 1 line
2.46.0.551.gc5ee8f2d1c.dirty