Coder Social home page Coder Social logo

Intelligently handle git about dripbox HOT 14 CLOSED

epall avatar epall commented on July 17, 2024
Intelligently handle git

from dripbox.

Comments (14)

jfeldstein avatar jfeldstein commented on July 17, 2024

The flow I've found that works is to commit and push on the local end, then git reset --hard HEAD followed by git pull origin branchname on the remote

from dripbox.

epall avatar epall commented on July 17, 2024

Yep, that's usually what I do, too

from dripbox.

epall avatar epall commented on July 17, 2024

I think I have an alternative, better solution with bfaf9f4. There really shouldn't be a git repo on the remote host. Instead, the remote state should look just like the local state, which we can accomplish with rsync at start.

from dripbox.

jfeldstein avatar jfeldstein commented on July 17, 2024

Ok. I've never used rsync before. How do I set this up?

from dripbox.

epall avatar epall commented on July 17, 2024

rsync comes with OSX, so all you need to do is git pull + pip install .

When you run drip now, choose either -f to get the old behavior or --sync to sync the local copy up to the remote host, overwriting everything and DELETING any files that aren't found in the local copy.

from dripbox.

jfeldstein avatar jfeldstein commented on July 17, 2024

Very interesting. Should be usefull, I just have to figure out the details for my particular setup. Thanks.

from dripbox.

jfeldstein avatar jfeldstein commented on July 17, 2024

I installed pip, and then ran pip install setup.py and pip install dripbox.py. Both told me:

Jeezbook|dripbox: pip install dripbox.py   
Downloading/unpacking dripbox.py
Could not find any downloads that satisfy the requirement dripbox.py
No distributions at all found for dripbox.py
Storing complete log in /Users/Jordan/.pip/pi

And that log says:

------------------------------------------------------------
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/pip run on Wed Feb  9 11:03:53 2011
Downloading/unpacking dripbox.py
  Getting page http://pypi.python.org/simple/dripbox.py
  Could not fetch URL http://pypi.python.org/simple/dripbox.py: HTTP Error 404: Not Found (dripbox.py does not have any releases)
  Will skip URL http://pypi.python.org/simple/dripbox.py when looking for download links for dripbox.py
  Getting page http://pypi.python.org/simple/
  URLs to search for versions for dripbox.py:
  * http://pypi.python.org/simple/dripbox.py/
  Getting page http://pypi.python.org/simple/dripbox.py/
  Could not fetch URL http://pypi.python.org/simple/dripbox.py/: HTTP Error 404: Not Found (dripbox.py does not have any releases)
  Will skip URL http://pypi.python.org/simple/dripbox.py/ when looking for download links for dripbox.py
  Could not find any downloads that satisfy the requirement dripbox.py
No distributions at all found for dripbox.py
Exception information:
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pip/basecommand.py", line 124, in main
    self.run(options, args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pip/commands/install.py", line 178, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pip/req.py", line 896, in prepare_files
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pip/index.py", line 141, in find_requirement
    raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for dripbox.py

I've never used pip before (I stick to macports / homebrew), am I doing something wrong?

from dripbox.

epall avatar epall commented on July 17, 2024

Forget about pip. Just do "python setup.py install"

from dripbox.

jfeldstein avatar jfeldstein commented on July 17, 2024

New error while connecting:

Jeezbook|local_code_stash: drip [email protected]:local/trunk
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/Crypto/Util/randpool.py:40: RandomPool_DeprecationWarning: This application uses RandomPool, which is BROKEN in older releases.  See http://www.pycrypto.org/randpool-broken
  RandomPool_DeprecationWarning)
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/drip", line 56, in <module>
    dripbox.rsync(remote, host, args.remote_port, args.sync)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/dripbox.py", line 58, in rsync
    port = _get_ssh_config_port(host) or 22
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/dripbox.py", line 48, in _get_ssh_config_port
    with open(SSH_CONFIG, 'r') as cfile:
IOError: [Errno 2] No such file or directory: '/Users/Jordan/.ssh/config'

from dripbox.

jfeldstein avatar jfeldstein commented on July 17, 2024

I rolled back to 1b37595 which put me before the other ssh changes, it works now. I've never seen an ~/.ssh/config file used before, not sure what goes in one.

from dripbox.

brainsik avatar brainsik commented on July 17, 2024

Fixed SSH config failure — SHA: 6fb9f08

from dripbox.

epall avatar epall commented on July 17, 2024

jfeldstein: can you confirm that brainsik has fixed this issue for you?

from dripbox.

jfeldstein avatar jfeldstein commented on July 17, 2024

Fixed.

from dripbox.

epall avatar epall commented on July 17, 2024

Great!

from dripbox.

Related Issues (9)

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.