Skip to content

Commit

Permalink
Avoid filetype errors on renamed files
Browse files Browse the repository at this point in the history
  • Loading branch information
rcowham committed Jul 19, 2023
1 parent 8a0a0f1 commit 33f06d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -1310,7 +1310,7 @@ func (g *GitP4Transfer) updateDepotRevs(opts GitParserOptions, gf *GitFile, chgN
func (g *GitP4Transfer) recordDepotFileType(gf *GitFile) {
k := fmt.Sprintf("%s#%d", gf.p4.depotFile, gf.p4.rev)
g.depotFileTypes[k] = gf.baseFileType
if gf.action == rename && (gf.isBranch || gf.isMerge) {
if gf.action == rename {
k := fmt.Sprintf("%s#%d", gf.p4.srcDepotFile, gf.p4.srcRev)
if _, ok := g.depotFileTypes[k]; !ok {
g.depotFileTypes[k] = gf.baseFileType
Expand Down

0 comments on commit 33f06d8

Please sign in to comment.