Skip to content

Commit 786c647

Browse files
committed
git_refspec_transform: Handle NULL dst
1 parent e212011 commit 786c647

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/refspec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ int git_refspec_transform(git_buf *out, const git_refspec *spec, const char *nam
252252
}
253253

254254
if (!spec->pattern)
255-
return git_buf_puts(out, spec->dst);
255+
return git_buf_puts(out, spec->dst ? spec->dst : "");
256256

257257
return refspec_transform(out, spec->src, spec->dst, name);
258258
}

0 commit comments

Comments
 (0)