fatal: empty string is not a valid pathspec, please use . instead if you meant to match all paths

最近升级Git到2.17后碰到这个问题,经过排查最后在https://gitlab.com/tortoisegit/tortoisegit/issues/3138 找到了问题的原因,大致意思是Git 升到2.16及更高版本后作了些改变,TortoiseGit版本在 2.6.0 这个版本修复了这个问题,所以如果Git升级为2.16后TortoiseGit也要升级到 2.6.0或更高版本


Release notes

= Release 2.6.0 =
Released: 2018-02-17

This is planned to be the last version compatible with MsysGit 1.9.5 (i.e., Git for Windows < 1.9.5).

== Features ==
 * Fixed issue #3089: Show parent SHA1 on cherry picking a merge commit
 * Fixed issue #3052: Filename autocomplete in commit dialog ignores filenames starting with underscores
 * TortoiseGitMerge now uses native ribbon instead of MFC wrapped
   This results in a noticeable speed up (cf. issue #1616) and also fixes issues with rounded corners for maximized windows (cf. issue #1767)
 * Fixed issue #3107: Clean: Allow to remove orphaned submodules (i.e., clean -f -f)
 * Fixed issue #3126: Add an option to show all refs of a commit in the log (all refs are shown now by default)
 * Fixed issue #3116: Revision graph: add ability to delete branches
 * Fixed issue #3121: Create shorter branch names when checking out a commit
 * Update linked libraries:
   * pcre to 8.41
   * apr to 1.6.3 and apr-util to 1.6.1
 * Commit now informs the user if there is a conflict hint in the commit message (line starting with "# Conflicts:")
 * Fixed issue #3137: Add TortoiseGit to Win10 default program list
 * Fixed issue #3141: bisect: add good/bad continue options to progress dialog
 * Add support for github's new client protocol (x-github-client)
 * Fixed issue #3160: Close TortoiseGitBlame window by ESC key (you might need to reset keyboard shortcut settings manually)

== Bug Fixes ==
 * Fixed issue #3029: LogDlg: Action column icons painted over Graph or message columns when turned off or resized
 * Fixed issue #3042: Spelling and grammar errors in First Start Wizard
 * Fixed issue #3035: TortoiseGit 2.5.0.0 might crash in LogDlg after fetch or refreshing working tree status
 * Fixed issue #3050: TortoiseGitMerge UI: Context menu is not available on margin left to text any more
 * Fixed issue #3059: Right click in touch mode is not working
 * Fixed issue #3064: Commit dialog ignores "Select items automatically" when refreshing
 * Fixed issue #3036: Can not save changes in Settings -> Network after trying to add command-line option to the SSH-client
 * Fixed issue #3066: Message field needs vertical scrollbar in Create Tag dialog
 * Fixed issue #3033: Cannot view submodule log if repository sits under directory symlink
   Update libgit to 2.15 based on Git for Windows source.
 * Fixed issue #3055: Explorer crash when deleting two independent folders
 * Fixed issue #3047: When Log Messages window is narrow, Filter box placeholder text may cover up the Filter Types button
 * Fixed issue #3090: Show Log window stuck with "Fetching changed files..."
 * Fixed issue #3084: Improve info message for merge-doc.js and drop broken URL
 * Fixed issue #3085: merge-doc.js: Word 2007 does not make a three-way comparison and the documents are shown in wrong order
 * Fixed issue #3086: merge-doc.js: Merge document in word >=2010 leaves three open windows
 * Fixed issue #3096: Duplicate 'Save as...' context menu items appear when closing and opening 'View Patch' window
 * Fixed issue #3093: Icon overlay might show ignored directories containing files as modified
 * Fixed issue #3076: Commit dialog opens with incomplete rendering in Windows 7 classic theme
 * Fixed issue #3094: Diff command results in crash
 * Fixed issue #3041: Commit Window might freeze when clicking on the last modified header shortly after opening
 * Fixed issue #3061: MenuButton popup might show directly under mouse arrow
 * Fixed issue #3108: Versioned file in ignored folder causes wrong overlays
 * Fixed issue #3109: Bad greying out of outer paths (other paths with same prefix also match)
 * Fixed issue #3132: Post commit hook doesn't show up on settings dialog
 * Fixed issue #2990: SendmailDlg: Don't auto select entries when using arrow keys
 * Fixed issue #3134: Deletion of submodule does not allow user to select the deleted (red) submodule on commit
 * Fixed issue #3138: "Check for modifications", "Revert" and other dialogs do not work after git update to version 2.16.0: "fatal: empty string is not a valid pathspec"
 * Fixed issue #3139: Git SSH operations do not work after git update to version 2.16.0 if ssh URL contains a port
 * Fixed issue #3143: Remember last selection of "Show nested refs" when browsing references
 * Fixed issue #3152: TortoiseGitMerge: Single pane view as default
 * Fixed issue #3158: TortoiseGitProc.exe hangs with 100% CPU when displaying commit window
 * Fixed issue #3153: "Failed to parse config file" if .gitconfig or .gitmodules use CRLF and contain blank lines
 * Fixed issue #3155: Can't parse config or .gitmodules files if the encoding is UTF-8 BOM

你可能感兴趣的:(Git,Git,TortoiseGit)