Skip to content
  • David Turner's avatar
    tests: remove some direct access to .git/logs · d0ab0584
    David Turner authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    Alternate refs backends might store reflogs somewhere other than
    .git/logs.  Change most test code that directly accesses .git/logs to
    instead use git reflog commands.
    
    There are still a few tests which need direct access to reflogs: to
    check reflog permissions, to manually create reflogs from scratch, to
    save/restore reflogs, to check the format of raw reflog data, and to
    remove not just reflog contents, but the reflogs themselves. All cases
    which don't need direct access have been modified.
    
    Signed-off-by: default avatarDavid Turner <dturner@twopensource.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    d0ab0584