Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some change for solving filenames contain spaces in Git Bash #5

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
source 'https://rubygems.org'

gem 'trollop'
gem 'trollop', '~> 2.0'
gem 'right_aws', :git => 'https://github.com/rightscale/right_aws.git'
gem 's3'
gem 'ruby-atmos-pure'
gem 'right_aws'
gem 'net_dav', :git => 'https://github.com/devrandom/net_dav.git', :require => 'net/dav'
gem 'net_dav'

#gem 'curb', :require => false
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,23 +82,20 @@ that is. If you want to upload & delete the local cache of media files, run:

$ git media clear

If you want to replace file in git-media with changed version (for example, video file has been edited),
you need to explicitly tell git that some media files has changed:

$ git update-index --really-refresh


## Config Settings

$ git config --global media.auto-download false


## Installing

$ sudo gem install bundler
$ bundle install
$ sudo gem install trollop
$ sudo gem install s3
$ sudo gem install ruby-atmos-pure
$ sudo gem install right_aws
$ sudo gem install net_dav
$ gem build git-media.gemspec
$ sudo gem install git-media-*.gem
$ sudo gem install git-media-0.1.3.gem

## Notes for Windows

Expand Down
15 changes: 2 additions & 13 deletions git-media.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,8 @@ Gem::Specification.new do |s|
]
s.homepage = "http://github.com/alebedev/git-media"
s.require_paths = ["lib"]
s.rubygems_version = "1.8.28"
s.rubygems_version = "2.2.2"
s.summary = "git-media"

if s.respond_to? :specification_version then
s.specification_version = 3

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<trollop>, [">= 0"])
else
s.add_dependency(%q<trollop>, [">= 0"])
end
else
s.add_dependency(%q<trollop>, [">= 0"])
end
s.add_dependency(%q<trollop>, ["~> 2"])
end

4 changes: 2 additions & 2 deletions lib/git-media/sync.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def self.expand_references

def self.update_index
refs = GitMedia::Status.find_references
`git update-index --assume-unchanged -- #{refs[:expanded].join(' ')}`
refs[:expanded].each{ |x| `git update-index --assume-unchanged -- "#{x}"`}
puts "Updated git index"
end

Expand All @@ -51,4 +51,4 @@ def self.upload_local_cache
end

end
end
end
8 changes: 4 additions & 4 deletions lib/git-media/transport.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def push(sha)
end

## OVERWRITE ##

def read?
false
end
Expand All @@ -29,11 +29,11 @@ def get_file(sha, to_file)
def put_file(sha, to_file)
false
end

def get_unpushed(files)
files
end

end
end
end
end