Re: [git-users] Is there a method to rebuild completely the repositoty ?

2012-09-19 Thread lalebarde
So nice & cool to use smat tools written by smart people !
Thank you very much Konstantin, at first glance, it should do it.
I am going to study it in the deep and perform test. I will inform you of 
the results.

Le mercredi 19 septembre 2012 12:06:45 UTC+2, Konstantin Khomoutov a écrit :
>
>
>
> `git filter-branch` [1] is what you're probably looking for as it 
> allows one to apply arbitrary script to manipulate each commit on a 
> branch (or all branches).
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/cFVxk_ev0YwJ.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] Is there a method to rebuild completely the repositoty ?

2012-09-19 Thread Konstantin Khomoutov
On Wed, 19 Sep 2012 13:18:39 +0300
Edgars Liepa  wrote:

> then why is the malware installed at exact same time as git ?
> Im sure, its coming from git. And i used several online tools, to
> scan the infected file..
> The fact that install folder is appdata + 2154711257125151751751 +
> 351561561.exe shows that its not normal app..

Dude, many of us use Git for Windows, and many of follow upstream
developments by installing published versions as soon as they come out.
No one seems to have an issue you reported, so it looks like false
positive to me.

Hence I'd just tear this discussion down at this point.

And you did answer to a wrong question.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] Is there a method to rebuild completely the repositoty ?

2012-09-19 Thread Edgars Liepa
then why is the malware installed at exact same time as git ?
Im sure, its coming from git. And i used several online tools, to scan the
infected file..
The fact that install folder is appdata + 2154711257125151751751 +
351561561.exe shows that its not normal app..

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] Is there a method to rebuild completely the repositoty ?

2012-09-19 Thread Konstantin Khomoutov
On Wed, 19 Sep 2012 02:05:35 -0700 (PDT)
lalebarde  wrote:

> I use Git *smudge/clean* in a border line way that do not respect the
> Git recommendations : "*When you design these filters, they should be
> able to fail gracefully and have the project still work properly."*
> 
> As I change my filters, I wonder if there is a simple method to
> *rebuild completely the repositoty*, in order to have a new one as it
> would have been if this new filter was used from the start - except
> of course the sha1 digests ? I know this is a bad idea, but with some
> care, managing it is possible with suspending the write access to the
> remote for all users but the admin before, notifying all users to
> rebuild, and hook the push with the test of a dummy file that tags
> the filter bersion in order that nobody can push with the old filter.
> 
> I don't want to have to maintain different versions of the filter and
> to embed a version identifier in the smudge filter - only this few
> bytes tag file.
> 
> By rebuild I mean :
> 
> for each commit {
>   smudge each file with the old filter to the workspace or any 
> temporary area
>  clean it with the new filter back to the repository
> }

`git filter-branch` [1] is what you're probably looking for as it
allows one to apply arbitrary script to manipulate each commit on a
branch (or all branches).

Be sure to 1) google for real-world usage examples (stackoverflow
contains pretty few of them, for instance); 2) do this on a cloned
repository, not on your production one as most possibly you will need a
several rounds of trial and error.

1. http://www.kernel.org/pub/software/scm/git/docs/git-filter-branch.html

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.