From: martin f. krafft Date: Tue, 4 Mar 2008 21:52:55 +0000 (+0100) Subject: do not use eval in git-fake-bare X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/b0cd3385d3cee9473dff003165bca3a5b226ff1d?ds=sidebyside;hp=830726b7fce0c001c51600ae591c874b7e31e9ed do not use eval in git-fake-bare (cherry picked from commit c6c5b06bbfe52bfc2fa131e3ff9d7f573f8aab04) --- diff --git a/lib/git-fake-bare b/lib/git-fake-bare index 0de12ce..9c8d84b 100644 --- a/lib/git-fake-bare +++ b/lib/git-fake-bare @@ -49,22 +49,22 @@ git_fake_bare_test = git_fake_bare_update = args="$@" [ -z "$args" ] && args="-t origin master" - eval GIT_DIR="$MR_REPO" git pull "$args" + GIT_DIR="$MR_REPO" git pull "$args" git_fake_bare_status = git status "$@" || true git_fake_bare_commit = cd "$(git_get_worktree)" - eval GIT_DIR="$MR_REPO" git commit -a "$@" - eval GIT_DIR="$MR_REPO" git push --all + GIT_DIR="$MR_REPO" git commit -a "$@" + GIT_DIR="$MR_REPO" git push --all git_fake_bare_record = cd "$(git_get_worktree)" - eval GIT_DIR="$MR_REPO" git commit -a "$@" + GIT_DIR="$MR_REPO" git commit -a "$@" git_fake_bare_diff = cd "$(git_get_worktree)" - eval GIT_DIR="$MR_REPO" git diff "$@" + GIT_DIR="$MR_REPO" git diff "$@" git_fake_bare_log = git log "$@"