Pull base files from a public git repo

12 views
Skip to first unread message

jeremy Lewi

unread,
Apr 26, 2012, 12:54:14 PM4/26/12
to codereview-discuss
codereview-discuss,

Does anyone have suggestions about how to keep git diffs/patches
uploaded to Rietveld honest? By honest, I mean ensuring that diffs are
relative to what's checked into the central git repo (sourceforge in
this case) for the project, as opposed to some arbitrary branch in the
user's local git repo?

Is there any way, I can make upload.py pull the base files from a
public repo in sourceforge (or github if that makes things easier).

Thanks
J

Andi Albrecht

unread,
Apr 28, 2012, 1:28:24 AM4/28/12
to jeremy Lewi, codereview-discuss
Hi Jeremy,
AFAIK you can't produce a diff using git against a remote repository.
But you can run

git fetch origin # update git's local repository metadata with
changesets from origin
upload.py [other options] origin/master # compare against origin/master

I'm not 100% sure if it's that what you really want. When comparing
your local changes against the remote branch without merging them
first the diff may be not what you expect. It may look like your local
changes will revert changes in upstream, but in fact they're just not
merged.

--Andi

>
> Thanks
> J
>
> --
> You received this message because you are subscribed to the Google Groups "codereview-discuss" group.
> To post to this group, send email to coderevie...@googlegroups.com.
> To unsubscribe from this group, send email to codereview-disc...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/codereview-discuss?hl=en.
>
Reply all
Reply to author
Forward
0 new messages