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:
tlimoncelli@stackexchange.com
2015-03-10 21:16:27 +00:00
parent ccba841cd8
commit 225d38ee11
6 changed files with 25 additions and 25 deletions

View File

@@ -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