BACKWARDS INCOMPATIBLE CHANGES:
* Using $BASEDIR to pass the location of the repo hasn't worked for a while. It has been removed. Simply cd into the vcs repo before running a command. BUG FIXES: * .gitignore was being created in subdirectories instead of VCS root. MINOR CHANGES * _blackbox_common.sh: Replace change_to_root with change_to_vcs_root * confidence_test.sh: Added more assertions and tests.
This commit is contained in:
@@ -22,15 +22,14 @@ if [[ $1 != 'yes' ]]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
echo cd "$REPOBASE"
|
||||
cd "$REPOBASE"
|
||||
change_to_vcs_root
|
||||
|
||||
echo VCS_TYPE: $VCS_TYPE
|
||||
|
||||
if [[ $VCS_TYPE = "git" || $VCS_TYPE = "hg" ]]; then
|
||||
# Update .gitignore or .hgignore
|
||||
|
||||
IGNOREFILE=".${VCS_TYPE}ignore"
|
||||
IGNOREFILE="${REPOBASE}/.${VCS_TYPE}ignore"
|
||||
if ! grep -sx >/dev/null 'pubring.gpg~' "$IGNOREFILE" ; then
|
||||
echo 'pubring.gpg~' >>"$IGNOREFILE"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user