Giter Site home page Giter Site logo

git-media's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

git-media's Issues

Media files checked out with LF on Windows

On Windows, media files are stored with CRLF but checked out with LF.
Repro steps:

  1. place the following in .gitattributes: *.png filter=media -crlf
  2. place a png file in the repo
  3. add and commit
  4. git media sync
  5. git checkout HEAD~ (as expected, the png file is removed)
  6. git checkout master (or whatever commit originally added the media file)
  7. git status

At this point, the png file has been checked back out, but git media claims that it has been modified, and in fact it has.
The file stored by git media matches the original file, but the one that has appeared in the repo after checking out does not match, as it appears to have UNIX-style line endings.
Running dos2unix on the original file will cause it to match the file that appeared after checkout in the repo.

I have created a script that will repro this on Windows (run from git bash). The same script works fine on Linux.

I am testing with local transport.
I have tried all 3 versions of core.autocrlf (true, false, input) to no avail.On Windows, media files are stored with CRLF but checked out with LF.
Repro steps:

  1. place the following in .gitattributes: *.png filter=media -crlf
  2. place a png file in the repo
  3. add and commit
  4. git media sync
  5. git checkout HEAD~ (as expected, the png file is removed)
  6. git checkout master (or whatever commit originally added the media file)
  7. git status

At this point, the png file has been checked back out, but git media claims that it has been modified, and in fact it has.
The file stored by git media matches the original file, but the one that has appeared in the repo after checking out does not match, as it appears to have UNIX-style line endings.
Running dos2unix on the original file will cause it to match the file that appeared after checkout in the repo.

I have created a script that will repro this on Windows (run from git bash). The same script works fine on Linux.

I am testing with local transport.
I have tried all 3 versions of core.autocrlf (true, false, input) to no avail.

Changed media file does not get uploaded

Hey,

I'm using a localpath with git-media.

Adding media files works fine but when I make changes to the media files they won't get uploaded to the localpath.

I tried the commands sync clear and update-index --really-refresh.

update-index --really-refresh also prints test1.jpg: needs update (this is the file i changed) but no matter what i do it does not upload the new version to the localpath.

Support for git-lfs

From the announcement page:

Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise.

I think it would make sense to add GitHub's LFS service to the list of supported storage options.

Here's the developer API, in case you wanted to take a look. I'm part of the GitHub Developer program so if I can help in any way let me know.

Problem installing git-media

I was following the install instruction but ran into a problem on the first step.
Could anyone explain what I need to do to resolve this?

$ git clone [email protected]:alebedev/git-media.git
Cloning into 'git-media'...
Warning: Permanently added the RSA host key for IP address '192.30.252.128' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

git fetch failure for net-dav + work-around

During the bundle install step:

Retrying git fetch --force --quiet --tags "/home/notklaatu/.bundle/ \
cache/git/net_dav-cfd3539cb697ebad3b54ee22c85d520206c52405" \
due to error (3/4): Bundler::Source::Git::GitCommandError Git error: \
command `git fetch --force --quiet --tags "/home/notklaatu/.bundle/ \
cache/git/net_dav-cfd3539cb697ebad3b54ee22c85d520206c52405"` \
in directory /var/lib/gems/2.1.0/bundler/gems/net_dav-615797fa55a7 has failed.

If this error persists you could try removing the cache directory 
'/home/notklaatu/.bundle/cache/git/ \
net_dav-cfd3539cb697ebad3b54ee22c85d520206c52405' \
error: cannot open .git/FETCH_HEAD: Permission denied

Removing the net-dav line from the Gemfile and installing net-dav manually succeeds.

Can't install git-media

After installing per the directions of the README I get the following exception when I run git media status

WARN: Unresolved specs during Gem::Specification.reset:
      trollop (>= 0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
/Users/cameroncraig/.rvm/gems/ruby-2.2.2@global/gems/git-media-0.1.5/lib/git-media.rb:4:in `require': cannot load such file -- trollop (LoadError)

I've tried installing and uninstalling multiple times, all the gems install and build correctly when I go through the install process so I'm not sure what's going on

Push 0.1.5 to rubygems

Hi,

Is there any chance to get version 0.1.5 pushed to rubygems?
I'd simplify our CI setup a lot.

Cannot switch branch

I installed git-media on Windows 10 and it works using a local folder for git media sync. However; I am unable to switch branches. Git complains about git-media synced files being not committed.

git checkout master -f
error: Entry 'path/to/git-media-synced-file.wav' not uptodate. Cannot merge.

However, git status says

On branch branchname
Your branch is up-to-date with 'origin/branchname'.
nothing to commit, working directory clean

I started using git-media on branchname. Should I have started using git-media on branch master? I also cannot merge branchname with any other branch. What can I do now to get git working again?

will this detect changes in image files?

i want to manage backups of large sets of image and video files without replicating files and using storage space unnecessarily. I saw this project and it just might be what i need. could you please confirm that changed files will be detected and only those changed files will be committed. thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.