[PR #64] [MERGED] Fix escaped char bug in getCommitInfos #71

Closed
opened 2026-02-16 10:24:01 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/git/pull/64
Author: @ethantkoenig
Created: 6/14/2017
Status: Merged
Merged: 6/15/2017
Merged by: @appleboy

Base: masterHead: fix/commit_infos


📝 Commits (1)

  • 001c153 Fix escaped char bug in getCommitInfos

📊 Changes

1 file changed (+7 additions, -0 deletions)

View changed files

📝 tree_entry.go (+7 -0)

📄 Description

The filenames in the output of git log command may contain escaped characters in quotes (e.g. for files whose name contain backslashes):

13d136320bad8b0318c2476a392fafb11b0bcf13
"content\\G44870\\ῥῆμα.md"

getCommitInfos previously did not for account this; with these changes it does.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/git/pull/64 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 6/14/2017 **Status:** ✅ Merged **Merged:** 6/15/2017 **Merged by:** [@appleboy](https://github.com/appleboy) **Base:** `master` ← **Head:** `fix/commit_infos` --- ### 📝 Commits (1) - [`001c153`](https://github.com/go-gitea/git/commit/001c153e75f73106d2bdf60892ea47e85745436d) Fix escaped char bug in getCommitInfos ### 📊 Changes **1 file changed** (+7 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `tree_entry.go` (+7 -0) </details> ### 📄 Description The filenames in the output of `git log` command may contain escaped characters in quotes (e.g. for files whose name contain backslashes): ``` 13d136320bad8b0318c2476a392fafb11b0bcf13 "content\\G44870\\ῥῆμα.md" ``` `getCommitInfos` previously did not for account this; with these changes it does. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 10:24:01 -05:00
yindo closed this issue 2026-02-16 10:24:01 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: go-gitea/git#71