4 years ago deac617cc7 Tracey Emery
where we can, use a single open repo object to reduce opening and closing a repo
4 years ago 3c245a0e1c Tracey Emery
further simplify objects carries around in struct gw_header
4 years ago 4e8d6e3e9a Tracey Emery
discussed at length with stsp
4 years ago 1ae0a34120 Stefan Sperling
add a test which ensures that 'got rebase' trims empty dirs from disk
4 years ago 2011c142e1 Stefan Sperling
simplify gw_get_repo_age() and close several resource leaks
4 years ago 7eb2c8df6b Stefan Sperling
no need to dup refname in gw_output_repo_heads()
4 years ago eb4f3ad3e4 Stefan Sperling
check for any symbolic refs and skip them, not just HEAD
4 years ago 17d4bf8dd5 Stefan Sperling
refname in gw_get_repo_age() doesn't need to be duplicated; simplify
4 years ago 742ba378f3 Stefan Sperling
there is no need to strdup() gw_trans->headref
4 years ago 122f3af5f6 Stefan Sperling
add missing error checks in gw_get_header()
4 years ago a4c23852c6 Stefan Sperling
gotweb: decorate only the branch's tip commit ID with "(branch)"; add XXX
4 years ago b0a1bc86f3 Stefan Sperling
gw_free_headers() frees just one gw_header so rename it to gw_free_header()
4 years ago 9278617450 Stefan Sperling
make gotweb's summary page display which branch the commit briefs belong to
4 years ago 7ecc73af19 Tracey Emery
ensure we close the final checked dir in gw_load_got_path and use better error message
4 years ago cc18a90416 Tracey Emery
catch invalid actions and git paths earlier in querystring parsing
4 years ago 6f6f771f7c Tracey Emery
set gw_err in correct code path
4 years ago 88759617e9 Tracey Emery
remove free(refs_str) that was reintroduced with rebase
4 years ago f1200fe3a0 Tracey Emery
fixup initial action querystring error and use the err.tmpl finally
4 years ago d81f9039e7 Stefan Sperling
jump to error handling consistently in gw_load_got_path()
4 years ago a81394a7f7 Stefan Sperling
eliminate unnecessary strdup() via an intermediate variable in gw_get_commit()
4 years ago 53e81e487b Tracey Emery
remove unneeded asprintf and clean up a couple of lines
4 years ago 5c65becf85 Tracey Emery
remove all usage of strdup("") and simply check for NULL instead
4 years ago 39fdad0d6c Tracey Emery
avoid strdup on author and committer
4 years ago d1635ae412 Tracey Emery
backout changes in a942aa37d2d222c183405af276d7bd07f9657398 and expand strdup error checking
4 years ago 640244865a Stefan Sperling
remove unnecessary etc directory from dist file list; noticed by tracey