Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commands/run.go: make --version synonymous with version()
- Loading branch information
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
. "test/testlib.sh" | ||
|
||
begin_test "git lfs --version is a synonym of git lfs version" | ||
( | ||
set -e | ||
|
||
reponame="git-lfs-version-synonymous" | ||
mkdir "$reponame" | ||
cd "$reponame" | ||
|
||
git lfs version 2>&1 >version.log | ||
git lfs --version 2>&1 >flag.log | ||
|
||
if [ "$(cat version.log)" != "$(cat flag.log)" ]; then | ||
echo >&2 "fatal: expected 'git lfs version' and 'git lfs --version' to" | ||
echo >&2 "produce identical output ..." | ||
|
||
diff -u {version,flag}.log | ||
fi | ||
) | ||
end_test |