Changeset 06c733c


Ignore:
Timestamp:
04/14/2021 07:09:35 PM (4 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/git-date
Children:
d28c66d
Parents:
6254a33
Message:

fix git command in expand_date

File:
1 edited

Legend:

Unmodified
Added
Removed
  • expand_date

    r6254a33 r06c733c  
    1212# this script at all.  Do NOT add "dater" filter into your .git/config.
    1313# For editors, just use `git log ${path}` to show the history of a file.
    14 cmd = [ 'git', 'log', '-1', '--pretty=%ad', 'FETCH_HEAD', argv[1] ]
     14cmd = [ 'git', 'log', '-1', '--pretty=%ad', 'FETCH_HEAD', '--', argv[1] ]
    1515try:
    1616    date = check_output(cmd, cwd = getcwd(), stderr=DEVNULL).decode().rstrip()
Note: See TracChangeset for help on using the changeset viewer.