Skip to content

Commit ab4e28e

Browse files
committed
commit_submodule: use commit ID to get submodule info instead of HEAD
1 parent 89251ff commit ab4e28e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commit_submodule.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func (c *Commit) Submodules() (Submodules, error) {
6060
URL: strings.TrimSpace(fields[1]),
6161
}
6262

63-
mod.Commit, c.submodulesErr = c.repo.RevParse("@:" + mod.Name)
63+
mod.Commit, c.submodulesErr = c.repo.RevParse(c.id.String() + ":" + mod.Name)
6464
if c.submodulesErr != nil {
6565
return
6666
}

0 commit comments

Comments
 (0)