From b0cd3385d3cee9473dff003165bca3a5b226ff1d Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 4 Mar 2008 22:52:55 +0100 Subject: [PATCH] do not use eval in git-fake-bare (cherry picked from commit c6c5b06bbfe52bfc2fa131e3ff9d7f573f8aab04) --- lib/git-fake-bare | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 "$@" -- 2.39.2