Advertisement
goatbar

using git-py to list remote tags

Sep 10th, 2012
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. fink install git-py27
  2.  
  3. ipython
  4. Python 2.7.3 (default, Sep 7 2012, 14:05:53)
  5. Type "copyright", "credits" or "license" for more information.
  6.  
  7. IPython 0.13 -- An enhanced Interactive Python.
  8. ? -> Introduction and overview of IPython's features.
  9. %quickref -> Quick reference.
  10. help -> Python's own help system.
  11. object? -> Details about 'object', use 'object??' for extra details.
  12.  
  13. In [1]: from git import Git
  14.  
  15. In [2]: ui = Git(".")
  16.  
  17. In [3]: ui.ls_remote("origin", tags=True)
  18. Out[3]: 'c799a533348eb29ed2308dc2cc8458eef7e2fe15\trefs/tags/v5.3.1982'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement