Skip to content
  • Johannes Sixt's avatar
    Fix misuse of prefix_path() · ef5b9d6e
    Johannes Sixt authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    When DEFAULT_GIT_TEMPLATE_DIR is specified as a relative path,
    init-db made it relative to exec_path using prefix_path(), which
    is wrong.  prefix_path() is about a file inside the work tree.
    There was a similar misuse in config.c that takes relative
    ETC_GITCONFIG path. Noticed by Junio C Hamano.
    
    We concatenate the paths manually. (prefix_filename() won't do
    because it expects a prefix with a trailing '/'.)
    
    Signed-off-by: default avatarJohannes Sixt <johannes.sixt@telecom.at>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    ef5b9d6e