mirror of
https://github.com/go-gitea/git.git
synced 2026-07-01 20:34:42 -04:00
[PR #110] [MERGED] Fix tree entry parsing #113
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/go-gitea/git/pull/110
Author: @ethantkoenig
Created: 2/8/2018
Status: ✅ Merged
Merged: 2/9/2018
Merged by: @lunny
Base:
master← Head:fix/parse📝 Commits (3)
34f6977Fix tree entry parsing515c084nitsd999b86populate TreeEntry.ptree📊 Changes
3 files changed (+140 additions, -82 deletions)
View changed files
➕
parse.go(+81 -0)➕
parse_test.go(+58 -0)📝
tree.go(+1 -82)📄 Description
Fixes the parsing of filenames with escaped characters, which did not previously handled escaped characters such as
\ncorrectly. Also adds unit tests.This PR also exposes the parsing functionality as public, so that it can be reused (see https://github.com/go-gitea/gitea/blob/a89592d4abfef01e68e3c53a3cdb3846b03abd2b/models/repo_indexer.go#L234)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.