Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed
- Fixed "couldn't find remote ref HEAD" errors when re-indexing certain repositories. [#497](https://github.com/sourcebot-dev/sourcebot/pull/497)

### Changed
- Disable page scroll when using arrow keys on search suggestions box. [#493](https://github.com/sourcebot-dev/sourcebot/pull/493)

Expand Down
5 changes: 1 addition & 4 deletions packages/backend/src/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ export const cloneRepository = async (
);

await unsetGitConfig(path, ["remote.origin.url"]);

await git.cwd({
path,
}).addConfig("remote.origin.fetch", "+refs/heads/*:refs/heads/*");
} catch (error: unknown) {
const baseLog = `Failed to clone repository: ${path}`;

Expand Down Expand Up @@ -59,6 +55,7 @@ export const fetchRepository = async (

await git.fetch([
remoteUrl.toString(),
"+refs/heads/*:refs/heads/*",
"--prune",
"--progress"
]);
Expand Down