git-lfs/test/test-push-file-with-branch-name.sh

22 lines
420 B
Bash
Raw Normal View History

#!/usr/bin/env bash
. "test/testlib.sh"
begin_test "push a file with the same name as a branch"
(
set -e
reponame="$(basename "$0" ".sh")"
setup_remote_repo "$reponame"
clone_repo "$reponame" repo
git lfs track "master"
echo "master" > master
git add .gitattributes master
git commit -m "add master"
git lfs push --all origin master 2>&1 | tee push.log
grep "(1 of 1 files)" push.log
)
end_test