Commits


changes for 0.44


remove unused variable in gotweb.c, patch by Martin Vahlensieck (thanks)


fix on keywork in gotweb parse.y, patch by Martin Vahlensieck (thanks)


fix replacing symlinks with files And add a test case which verifies that the inverse also works, i.e. a symlink being replaced with a regular file. problem reported and fix tested by jrick


fix missing unlink(tmppath) in error cases of install_blob()


clear staged file type in file index entries whenever staged status is cleared


avoid got_repo_map_path() in 'got tree' if a work tree is available Note that got_worktree_resolve_path() will return a path based on the current working directory if the argument is the empty string. This quirk keeps the behaviour of 'got tree' intact which depends on the current working directory if run in a work tree. ok naddy@


test case for 'got integrate' failing if symlink changes to file; patch by jrick This test verifies the current behaviour, even though it is not the most desirable behaviour.


initialize sb.st_mode after stat(2) failure in got_worktree_resolve_path()


avoid got_repo_map_path() in 'got blame' 'got blame' does not need access to the work tree. So far the work tree was completely hidden with unveil(). We must now expose the work tree while resolving the path, so unveil() calls are shuffled around slightly. Failing realpath() calls would mess with path resolution otherwise. There's a bug in got_worktree_resolve_path() where it failed to canonicalize a path constructed from a user-specified path that does not exist on disk. Note that this path falls into strncmp() a few lines down. I am fixing this by adding canonicalization. Generally, joining paths with asprintf() and comparing paths with strncmp() is fragile. A more general solution might be needed but I am leaving that for another day. ok naddy


replace resolve_commit_arg() helper in got.c with got_repo_match_object_id()


convert all remaining instances of chmod(2) to fchmod(2) ok stsp


use fchmod(2) instead of chmod(2). it is less racy, and we just opened the descriptor. ok naddy@ stsp@


fix permissions mode bits for fetched pack files; patch by Alisdair MacLeod


prevent a NULL dereference if 'got log -p' runs against a root commit


preserve what was passed in if got_repo_map_path() can't figure out a path problem found by + ok naddy


make 'got log' avoid got_repo_map_path() if run in a work tree ok naddy


detect unknown repository format extensions (such as sha256 format) ok millert


bump version number


CHANGES for 0.43


indentation fixes


properly handle nonexistent remote repository names given to 'got fetch' found by jrick ok naddy


plug memory leaks in error paths; found by naddy


use got_path_dirname() in tog's input_log_view(); avoids const dirname(3) ok naddy


use got_path_dirname() in schedule_for_deletion(); avoids const dirname(3) ok naddy