Skip to content
Snippets Groups Projects
Commit 33de26d2 authored by Richard Hartmann's avatar Richard Hartmann
Browse files

Merge branch 'master' of github.com:RichiH/vcsh

parents 80ebb8dc a9e401b2
Branches
Tags
No related merge requests found
...@@ -130,6 +130,8 @@ this: ...@@ -130,6 +130,8 @@ this:
[DEFAULT] [DEFAULT]
jobs = 5 jobs = 5
# Use if your mr does not have vcsh support in mainline, yet
include = cat /usr/share/mr/vcsh
include = cat ${XDG_CONFIG_HOME:-$HOME/.config}/mr/config.d/* include = cat ${XDG_CONFIG_HOME:-$HOME/.config}/mr/config.d/*
### repo.d ### ### repo.d ###
......
...@@ -102,7 +102,7 @@ an interactive user. ...@@ -102,7 +102,7 @@ an interactive user.
Write .gitignore.d/<repo> via git ls-files. Write .gitignore.d/<repo> via git ls-files.
* <repo> <gitcommand>: * <repo> <gitcommand>:
Shortcut to run `vcsh` on a repo. Will prepend `git` to <command> by itself. Shortcut to run `vcsh` on a repo. Will prepend `git` to <command>.
* <repo>: * <repo>:
Shortcut to run `vcsh enter <repo>`. Shortcut to run `vcsh enter <repo>`.
......
...@@ -219,7 +219,7 @@ if [ ! "x$VCSH_GITIGNORE" = 'xexact' ] && [ ! "x$VCSH_GITIGNORE" = 'xrecursive' ...@@ -219,7 +219,7 @@ if [ ! "x$VCSH_GITIGNORE" = 'xexact' ] && [ ! "x$VCSH_GITIGNORE" = 'xrecursive'
fi fi
if [ "$1" = 'clone' ]; then if [ "$1" = 'clone' ]; then
[ -z $2 ] && fatal "$1: please specify a remote" 1 [ -z "$2" ] && fatal "$1: please specify a remote" 1
export VCSH_COMMAND="$1" export VCSH_COMMAND="$1"
GIT_REMOTE="$2" GIT_REMOTE="$2"
[ -n "$3" ] && VCSH_REPO_NAME="$3" || VCSH_REPO_NAME=$(basename "$GIT_REMOTE" .git) [ -n "$3" ] && VCSH_REPO_NAME="$3" || VCSH_REPO_NAME=$(basename "$GIT_REMOTE" .git)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment