[PR #3419] [MERGED] Fix empty checkout bug #16932

Closed
opened 2025-11-02 12:22:25 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/3419
Author: @ethantkoenig
Created: 1/28/2018
Status: Merged
Merged: 1/28/2018
Merged by: @lafriks

Base: masterHead: fix/empty_checkout


📝 Commits (2)

  • 939671f Fix empty checkout bug
  • d3c1483 Merge branch 'master' into fix/empty_checkout

📊 Changes

1 file changed (+6 additions, -6 deletions)

View changed files

📝 models/repo.go (+6 -6)

📄 Description

With newer versions of git, checking out an empty pathspec results in an error.

See 36a94da8da/models/repo_indexer.go (L170)


🔄 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/gitea/pull/3419 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 1/28/2018 **Status:** ✅ Merged **Merged:** 1/28/2018 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `fix/empty_checkout` --- ### 📝 Commits (2) - [`939671f`](https://github.com/go-gitea/gitea/commit/939671f425a54c35c710956119c478fd832cbd0b) Fix empty checkout bug - [`d3c1483`](https://github.com/go-gitea/gitea/commit/d3c14835ee56e6eb682d1b5007a1b4dbb2ab410a) Merge branch 'master' into fix/empty_checkout ### 📊 Changes **1 file changed** (+6 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `models/repo.go` (+6 -6) </details> ### 📄 Description With newer versions of git, checking out an empty pathspec results in an error. See https://github.com/go-gitea/gitea/blob/36a94da8dab112f47ee1774f2ae9a8fd7ca21a1c/models/repo_indexer.go#L170 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:22:25 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16932