Skip to content

Commit 94edfb1

Browse files
authored
Merge pull request #13087 from xokdvium/libutil-git-permission-format
libutil: Use correct argument to Error format ctor
2 parents b287f33 + 1b5c8aa commit 94edfb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libutil/git.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ void parseTree(
134134
RawMode rawMode = std::stoi(perms, 0, 8);
135135
auto modeOpt = decodeMode(rawMode);
136136
if (!modeOpt)
137-
throw Error("Unknown Git permission: %o", perms);
137+
throw Error("Unknown Git permission: %o", rawMode);
138138
auto mode = std::move(*modeOpt);
139139

140140
std::string name = getStringUntil(source, '\0');

0 commit comments

Comments
 (0)