forked from NvChad/NvChad
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: repository commit hash 를 열때, 해당 repository 이름에
.
이 포함된 경우
정상동작하지 않던 이슈 처리 i.e. neogit 등을 실행해서 해당 레포(`.` 포함되어 있어야 함)의 hash 에서 실행하면 재현
- Loading branch information
Showing
4 changed files
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
local remove_suffix = function (suffix, name) | ||
if name:sub(-#suffix) == suffix then | ||
return name:sub(1, -(#suffix + 1)) | ||
end | ||
return name | ||
end | ||
|
||
return remove_suffix |