config/git: update url generation via git-repo
This commit is contained in:
parent
4893de59ac
commit
41aea07a8c
|
@ -106,7 +106,7 @@
|
|||
lgr = log --pretty=tformat:'%C(auto)%h%d %s %Cgreen(%cd) %Cblue<%an>%Creset' --date=human --graph
|
||||
lg = lgr HEAD @{push}
|
||||
lo = log --pretty=tformat:'%C(auto)%h%d %s %Cgreen(%cd) %Cblue<%an>%Creset' --date=human --no-merges
|
||||
lp = log -p --date=local
|
||||
lp = log -p --date=local # Like --full-diff
|
||||
my = lo --author "xeru\\|anek"
|
||||
|
||||
standup = my --since yesterday --all
|
||||
|
|
|
@ -8,9 +8,6 @@
|
|||
# message's source. The hook's purpose is to edit the commit
|
||||
# message file. If the hook fails with a non-zero status,
|
||||
# the commit is aborted.
|
||||
#
|
||||
# To enable this hook, set the hooksPath in git:
|
||||
# git config core.hooksPath .dev/githooks
|
||||
|
||||
COMMIT_MSG_FILE=$1
|
||||
COMMIT_SOURCE=$2
|
||||
|
@ -31,7 +28,7 @@ if beginswith $'\n#' "$original"; then
|
|||
case "$path" in ([0-9]*) path="${path#*/}";; esac
|
||||
path="${path#.}"
|
||||
{
|
||||
echo "${path%/}:"
|
||||
echo "${path%-}:"
|
||||
echo "$original"
|
||||
} > "$COMMIT_MSG_FILE"
|
||||
fi
|
||||
|
|
|
@ -17,7 +17,7 @@ case "$1" in
|
|||
user=${3:-${user:-$(git config user.name)}}
|
||||
repo=${2:-$(basename $PWD)}
|
||||
if test "$https"
|
||||
then echo "https://${host#git*@}/$user/$repo"
|
||||
then echo "https://${host#git*@}/$user/$repo.git"
|
||||
else echo "$host:$user/$repo.git"
|
||||
fi
|
||||
esac
|
||||
|
|
Loading…
Reference in New Issue