add newline when creating status-go diff link
Otherwise Fugitive plugin in Vim complains about it. Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
8ed1797f44
commit
7bf77efc87
|
@ -16,7 +16,7 @@ COMMIT_MSG_FILE=$1
|
|||
# Check if the commit message already contains the link (rebase) and update otherwise insert into line2
|
||||
if ! grep -qF "${GITHUB_LINK_PREFIX}" "${COMMIT_MSG_FILE}" >/dev/null; then
|
||||
sed -in'' -e "2i\\
|
||||
${GITHUB_LINK}\n" "${COMMIT_MSG_FILE}"
|
||||
\n${GITHUB_LINK}" "${COMMIT_MSG_FILE}"
|
||||
else
|
||||
sed -in'' -e "s;^${GITHUB_LINK_PREFIX}.*$;${GITHUB_LINK};" "${COMMIT_MSG_FILE}"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue