Skip to content

Instantly share code, notes, and snippets.

@bmizerany
Created November 10, 2009 02:45
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save bmizerany/5e318493533907940dc7 to your computer and use it in GitHub Desktop.
blake:fido$ grm -rf sinatra/ && sh -x bin/fido git://github.com/sinatra/sinatra.git 0.3.x
+ set -e
++ git --version
++ cut '-d ' -f3
+ GIT_VERSION=1.6.5.1
+ '[' 1.6.5.1 '<' 1.6.5 ']'
+ '[' 2 -lt 2 ']'
+ url=git://github.com/sinatra/sinatra.git
+ shift
+++ echo git://github.com/sinatra/sinatra.git
+++ awk -F: '{print $NF}'
++ basename //github.com/sinatra/sinatra.git .git
+ GIT_WORK_TREE=sinatra
+ GIT_DIR=sinatra/.git
+ '[' -f sinatra/.git/FIDO ']'
+ '[' -d sinatra/.git ']'
+ git init sinatra
Initialized empty Git repository in /Users/blake/code/fido/sinatra/.git/
+ export GIT_WORK_TREE=sinatra
+ GIT_WORK_TREE=sinatra
+ export GIT_DIR=sinatra/.git
+ GIT_DIR=sinatra/.git
+ git remote
+ grep -q origin
+ git remote add origin git://github.com/sinatra/sinatra.git
+ git fetch origin
remote: Counting objects: 4146, done.
remote: Compressing objects: 100% (1775/1775), done.
remote: Total 4146 (delta 2306), reused 4034 (delta 2237)
Receiving objects: 100% (4146/4146), 745.65 KiB | 668 KiB/s, done.
Resolving deltas: 100% (2306/2306), done.
From git://github.com/sinatra/sinatra
* [new branch] 0.3.x -> origin/0.3.x
* [new branch] 0.9.x -> origin/0.9.x
* [new branch] master -> origin/master
* [new tag] 0.3.3 -> 0.3.3
From git://github.com/sinatra/sinatra
* [new tag] 0.2.0 -> 0.2.0
* [new tag] 0.2.2 -> 0.2.2
* [new tag] 0.3.0 -> 0.3.0
* [new tag] 0.3.1 -> 0.3.1
* [new tag] 0.3.2 -> 0.3.2
* [new tag] 0.9.0.1 -> 0.9.0.1
* [new tag] 0.9.0.2 -> 0.9.0.2
* [new tag] 0.9.1 -> 0.9.1
* [new tag] 0.9.1.1 -> 0.9.1.1
* [new tag] 0.9.2 -> 0.9.2
* [new tag] 0.9.3 -> 0.9.3
* [new tag] 0.9.4 -> 0.9.4
++ git branch -a
+ branches=' remotes/origin/0.3.x
remotes/origin/0.9.x
remotes/origin/master'
+ '[' 1 -gt 0 ']'
+ attempt=remotes/origin/0.3.x
+ echo 'attempting remotes/origin/0.3.x'
attempting remotes/origin/0.3.x
+ echo remotes/origin/0.3.x remotes/origin/0.9.x remotes/origin/master
+ grep -q remotes/origin/0.3.x
+ git reset --hard remotes/origin/0.3.x
fatal: unable to write new index file
fatal: Could not reset index file to revision 'remotes/origin/0.3.x'.
+ git reset --hard remotes/origin/0.3.x
fatal: Unable to create 'sinatra/.git/index.lock': File exists.
If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.
fatal: Could not reset index file to revision 'remotes/origin/0.3.x'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment