Sign in
apache
/
sling-tooling-scm
/
9d97ababc34f330f885f2548741544c9b16e724b
/
.
/
scripts
/
jira_link_for_commit.sh
blob: f524463c899010a36ca985b431c2990c83b49a2e [
file
] [
log
] [
blame
]
#!/bin/sh -e
if
[
$
# -eq 0 ]; then
commit
=
HEAD
else
commit
=
$1
fi
hash
=
$
(
git rev
-
parse
--
short $
{
commit
})
base
=
$
(
git remote get
-
url origin
)
url
=
$
{
base
%.
git
}/
commit
/
$
{
hash
}
echo
"[commit ${hash}|${url}]"