]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'js/misc-fixes'
authorJunio C Hamano <gitster@pobox.com>
Tue, 27 May 2025 20:59:10 +0000 (13:59 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 27 May 2025 20:59:11 +0000 (13:59 -0700)
Assorted fixes for issues found with CodeQL.

* js/misc-fixes:
  sequencer: stop pretending that an assignment is a condition
  bundle-uri: avoid using undefined output of `sscanf()`
  commit-graph: avoid using stale stack addresses
  trace2: avoid "futile conditional"
  Avoid redundant conditions
  fetch: avoid unnecessary work when there is no current branch
  has_dir_name(): make code more obvious
  upload-pack: rename `enum` to reflect the operation
  commit-graph: avoid malloc'ing a local variable
  fetch: carefully clear local variable's address after use
  commit: simplify code

1  2 
bundle-uri.c
commit-graph.c
sequencer.c

diff --cc bundle-uri.c
Simple merge
diff --cc commit-graph.c
Simple merge
diff --cc sequencer.c
Simple merge