From 1f7edd9d24027bda4b69c5a7b052eb22efeab58f Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Fri, 20 May 2011 07:29:53 -0700 Subject: [PATCH] revert broken git-release --- History.md | 13 +++++++------ Readme.md | 2 +- bin/git-extras | 2 +- bin/git-release | 20 +++++++++++--------- 4 files changed, 20 insertions(+), 17 deletions(-) diff --git a/History.md b/History.md index e04cf18..13a49f7 100644 --- a/History.md +++ b/History.md @@ -1,12 +1,13 @@ -0.0.8 / 2011-02-22 +0.5.0 / 2011-05-19 ================== - * Added `git-create-branch`. - * Refactoring to adopt uniq code style across the scripts. - * git-release: Use annotated tags to release commits instead of lightweight tags. - * git-setup: Create a directory if the provided one doesn't exist yet. - * Fixed `git-ignore`: Don't fail if `.gitignore` file doesn't exist yet. + * Added `git-alias` [jweslley] + * Added `git-create-branch` [jweslley] + * Fixed one-liner due to `git extras update` change + * Fixed; `git-setup` creates a directory if the provided one does not exist [jweslley] + * Fixed; `git-setup` support for directories with spaces [jweslley] + * Fixed; `git-ignore` with no args no longer fails if `.gitignore` does not exist [jweslley] 0.4.1 / 2011-04-05 ================== diff --git a/Readme.md b/Readme.md index 7167dd7..8b829e4 100644 --- a/Readme.md +++ b/Readme.md @@ -11,7 +11,7 @@ Clone / Tarball: One-liner: - $ curl https://github.com/visionmedia/git-extras/raw/master/bin/git-update-extras | sh + $ curl https://github.com/visionmedia/git-extras/raw/master/bin/git-extras | INSTALL=y sh Brew (buggy): diff --git a/bin/git-extras b/bin/git-extras index 1aad5e3..a4276de 100755 --- a/bin/git-extras +++ b/bin/git-extras @@ -1,6 +1,6 @@ #!/bin/sh -VERSION="0.4.1" +VERSION="0.5.0" update() { local orig=$PWD diff --git a/bin/git-release b/bin/git-release index d3162ec..fadd192 100755 --- a/bin/git-release +++ b/bin/git-release @@ -1,10 +1,12 @@ -#!/bin/sh +#!/usr/bin/env sh -tag="$1" - -test -z "$tag" && echo "tag required" && exit 1 - -echo "... releasing $tag" -git tag -a "$tag" -m "Release $tag" \ - && git push --tags \ - && echo "... complete" +if test $# -gt 0; then + echo "... releasing $1" + git commit -a -m "Release $1" \ + && git tag $1 \ + && git push \ + && git push --tags \ + && echo "... complete" +else + echo "tag required" && exit 1 +fi