Commits
- Commit:
de51a12a5befe30cf15a089998d0136d52856dc2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gitconfig.c: look for comments after trimming the start of the line
This fixes the (harmless) errors raised by gitconfig.c on indented
comment lines and adds a test case for it. Reported by James Cook,
thanks!
ok stsp@
- Commit:
1dda2072ee3eb04988c80d2a72522e489a606914
- From:
- Omar Polo <op@omarpolo.com>
- Date:
log gitconfig.c parser errors to stderr, not stdout. ok stsp@
- Commit:
2b5b58792b27164b1bbcbfb25180ce2ea5986e3f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gitconfig.c: fix read/write out of bounds
conf_parse_line advances the `line' pointer without decrementing the
line size `sz'. This makes the parsing code mistakingly reading from
the next line (`line' is just a pointer in a bigger buffer that holds
the whole file) and may mangle it by writing NUL bytes in it.
Add also a new regress case to trigger this case.
Reported by falsifian on IRC, thanks!
ok stsp@
- Commit:
cd0aa8caa26478b2cb3c60e889894de02e0eb921
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gitconfig.c: fix printing of debugging logs
all the othe LOG_DBG calls assume \n is implicit (like with err(3)), so
remove the only explicit \n and make log_debug printing a newline too.
- Commit:
fee52bbff055c2853bc5f657f511f4851338a19a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gitconfig.c: unbreak build when GITCONFIG_DEBUG is defined
- Commit:
4a1dd8cd4ffaff7d51710820c34321acef181042
- From:
- Omar Polo <op@omarpolo.com>
- Date:
convert two files to utf8
ok stsp
- Commit:
00b3e9ae14f04a45f1ca7445bade6b41a6e8a1c5
- From:
- Omar Polo <op@omarpolo.com>
- Date:
replace malloc+memcpy with strndup. no functional change intended
ok stsp@
- Commit:
fda3525ecfaa5f1d603ab52254172b68ad177ed1
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
mark some function parameters as 'const', as they should be; patch by Omar Polo
- Commit:
300ea75439b394ec49d0c1fa52997bafe208fa58
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
silence a printf in our gitconfig parser; this code shouldn't print to stdout
- Commit:
16aeacf7088dcd3cd5e654af46a3015cecf41426
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use size_t for loop indices to avoid signedness warnings; from emaste@freebsd
- Commit:
83310ac93c89fc777a006097b06ef4f4df3a5396
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix bug where duplicates were returned from got_gitconfig_get_section_list()
- Commit:
cd95becd3d0ee4fb578daf570177c3550cb19e08
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
parse remotes from gitconfig
- Commit:
aba9c984d1420b77b23320520e70b27ecc83acf7
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
obtain repo format version and commit author name/email from .git/config
- Commit:
1d126e2d216c06991bbc586d796b3d002b2bd7d6
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add support for reading .git/config; parser was based on isakmpd/conf.c