Skip to content

Commit

Permalink
Merge branch 'main' into further-clean-up-helper-scripts
Browse files Browse the repository at this point in the history
* main:
  Remove Ubuntu 16.04 LTS from test matrix (#123)
  Configure default Git branch name for macOS tests in GitHub
  Handle rename of primary branch from "master" to "main"
  Ensure Git index is up-to-date before dirty repo  check #37 (#109)
  • Loading branch information
jmurty committed Apr 29, 2021
2 parents 09542a2 + aea3ff8 commit badebfc
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 17 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/run-bats-core-tests.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Tests

on:
# Only run tests on push to master branch
# Only run tests on push to main branch
push:
branches: [master]
# Run tests for all pull request changes targeting master
branches: [main]
# Run tests for all pull request changes targeting main
pull_request:
branches: [master]
branches: [main]

jobs:

Expand All @@ -28,7 +28,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-16.04, ubuntu-18.04, ubuntu-20.04, macos-latest]
os: [ubuntu-18.04, ubuntu-20.04, macos-latest]

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ The format is based on [Keep a Changelog][1], and this project adheres to

### Fixed

- Ensure Git index is up-to-date before checking for dirty repo, to avoid
failures seen in CI systems where the repo seems dirty when it isn't. (#37)
- Respect Git `core.hooksPath` setting when installing the pre-commit hook. (#104)
- Zsh completion. (#107)
- Fix salt generation for partial (patch) commits (#118)
Expand Down
19 changes: 8 additions & 11 deletions INSTALL.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
Install transcrypt
==================
# Install transcrypt

The requirements to run transcrypt are minimal:

* Bash
* Git
* OpenSSL
- Bash
- Git
- OpenSSL

You also need access to the _transcrypt_ script itself...

Manual Installation
-------------------
## Manual Installation

You can add transcrypt directly to your repository, or just put it somewhere in
your $PATH:
Expand All @@ -19,8 +17,7 @@ your $PATH:
$ cd transcrypt/
$ sudo ln -s ${PWD}/transcrypt /usr/local/bin/transcrypt

Installation via Packages
-------------------------
## Installation via Packages

A number of packages are available for installing transcrypt directly on your
system via its native package manager. Some of these packages also include man
Expand All @@ -29,7 +26,7 @@ page documentation as well as shell auto-completion scripts.
### Arch Linux

If you're on Arch Linux, you can build/install transcrypt using the
[provided PKGBUILD](https://github.com/elasticdog/transcrypt/blob/master/contrib/packaging/pacman/PKGBUILD):
[provided PKGBUILD](https://github.com/elasticdog/transcrypt/blob/main/contrib/packaging/pacman/PKGBUILD):

$ git clone https://github.com/elasticdog/transcrypt.git
$ cd transcrypt/contrib/packaging/pacman/
Expand All @@ -50,7 +47,7 @@ If you're on NixOS, you can install transcrypt directly via
$ nix-env -iA nixos.gitAndTools.transcrypt

> _**Note:**
> The [transcrypt derivation](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/version-management/git-and-tools/transcrypt/default.nix)
> The [transcrypt derivation](https://github.com/NixOS/nixpkgs/blob/main/pkgs/applications/version-management/git-and-tools/transcrypt/default.nix)
> was added in Oct 2015, so it is not available on the 15.09 channel._
### OS X
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ re-configure transcrypt with the new credentials.

$ transcrypt --flush-credentials
$ git fetch origin
$ git merge origin/master
$ git merge origin/main
$ transcrypt -c aes-256-cbc -p 'the-new-password'

### Command Line Options
Expand Down
2 changes: 2 additions & 0 deletions transcrypt
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ run_safety_checks() {
# ensure the repository is clean (if it has a HEAD revision) so we can force
# checkout files without the destruction of uncommitted changes
if [[ $requires_clean_repo ]] && [[ $HEAD_EXISTS ]] && [[ $IS_BARE == 'false' ]]; then
# ensure index is up-to-date before dirty check
git update-index -q --really-refresh
# check if the repo is dirty
if ! git diff-index --quiet HEAD --; then
die 1 'the repo is dirty; commit or stash your changes before running transcrypt'
Expand Down

0 comments on commit badebfc

Please sign in to comment.