Commit 786c6470 by Nelson Elhage

git_refspec_transform: Handle NULL dst

parent e212011b
......@@ -252,7 +252,7 @@ int git_refspec_transform(git_buf *out, const git_refspec *spec, const char *nam
}
if (!spec->pattern)
return git_buf_puts(out, spec->dst);
return git_buf_puts(out, spec->dst ? spec->dst : "");
return refspec_transform(out, spec->src, spec->dst, name);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment