Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Jun 10, 2006
  1. shared repository - add a few missing calls to adjust_shared_perm().

    Junio C Hamano authored
    There were a few calls to adjust_shared_perm() that were
     - init-db creates refs, refs/heads, and refs/tags before
       reading from templates that could specify sharedrepository in
       the config file;
     - updating config file created it under user's umask without
     - updating refs created it under user's umask without
     - switching branches created .git/HEAD under user's umask
       without adjusting.
    This moves adjust_shared_perm() from sha1_file.c to path.c,
    since a few SIMPLE_PROGRAM need to call repository configuration
    functions which in turn need to call adjust_shared_perm().
    sha1_file.c needs to link with SHA1 computation library which
    is usually not linked to SIMPLE_PROGRAM.
    Signed-off-by: Junio C Hamano <>
Commits on Jun 6, 2006
  1. Make index file locking code reusable to others.

    Junio C Hamano authored
    The framework to create lockfiles that are removed at exit is
    first used to reliably write the index file, but it is
    applicable to other things, so stop calling it "cache_file".
    This also rewords a few remaining error message that called the
    index file "cache file".
    Signed-off-by: Junio C Hamano <>
Something went wrong with that request. Please try again.