File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -431,7 +431,7 @@ Git, fallback to using `rename-file'."
431431 (user-error " %s already exists" dstfile))
432432 (unless (file-exists-p dstdir)
433433 (user-error " Destination directory %s does not exist" dstdir))
434- (if (magit-file-tracked-p (magit-convert-filename-for-git file) )
434+ (if (magit-file-tracked-p file)
435435 (magit-call-git " mv"
436436 (magit-convert-filename-for-git file)
437437 (magit-convert-filename-for-git newname))
Original file line number Diff line number Diff line change @@ -1074,10 +1074,11 @@ tracked file."
10741074
10751075(defun magit-file-ignored-p (file )
10761076 (magit-git-string-p " ls-files" " --others" " --ignored" " --exclude-standard"
1077- " --" file))
1077+ " --" (magit-convert-filename-for-git file) ))
10781078
10791079(defun magit-file-tracked-p (file )
1080- (magit-git-success " ls-files" " --error-unmatch" " --" file))
1080+ (magit-git-success " ls-files" " --error-unmatch"
1081+ " --" (magit-convert-filename-for-git file)))
10811082
10821083(defun magit-list-files (&rest args )
10831084 (apply #'magit-git-items " ls-files" " -z" " --full-name" args))
You can’t perform that action at this time.
0 commit comments