Skip to content

Commit

Permalink
fix: change TargetPath in rename msg from parent path to new self path
Browse files Browse the repository at this point in the history
  • Loading branch information
KirCute committed Dec 28, 2024
1 parent bf94f89 commit 714da95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/github/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ func (d *Github) Rename(ctx context.Context, srcObj model.Obj, newName string) e
ParentName: stdpath.Base(parentDir),
ParentPath: parentDir,
TargetName: newName,
TargetPath: parentDir,
TargetPath: stdpath.Join(parentDir, newName),
}, "rename")
if err != nil {
return err
Expand Down

0 comments on commit 714da95

Please sign in to comment.