scripts/Download - this should now 'checkout' proper git revisions

View: New views
2 Messages — Rating Filter:   Alert me  

scripts/Download - this should now 'checkout' proper git revisions

by Martin Papadopoulos-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


--- t2-trunk-svn/scripts/Download    2009-07-19 12:18:43.422936521 +0200
+++ .t2-trunk-svn/scripts/Download    2009-08-30 11:18:29.942953429 +0200
@@ -684,7 +684,7 @@
                 module="${url##*/}"
                 cmdline="git clone $url $module"
                 options="${options#* }"
-                [ -n $options ] && cmdpp="(cd $module; git checkout
$options)"
+                [ -n $options ] && cmdpp="(cd $module; git reset --hard
$options)"
                 ;;
             *)
                 echo "$cmdclient unrecognized!"



-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
lists@... with a subject of: unsubscribe t2

Re: scripts/Download - this should now 'checkout' proper git revisions

by Aldas Nabazas-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Martin,

Could you please explain it in details what difference it makes?

Thanks,
Aldas

On Sun, Aug 30, 2009 at 10:21 AM, Martin Papadopoulos <mpp@...> wrote:

--- t2-trunk-svn/scripts/Download    2009-07-19 12:18:43.422936521 +0200
+++ .t2-trunk-svn/scripts/Download    2009-08-30 11:18:29.942953429 +0200
@@ -684,7 +684,7 @@
                module="${url##*/}"
                cmdline="git clone $url $module"
                options="${options#* }"
-                [ -n $options ] && cmdpp="(cd $module; git checkout
$options)"
+                [ -n $options ] && cmdpp="(cd $module; git reset --hard
$options)"
                ;;
            *)
                echo "$cmdclient unrecognized!"



-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
lists@... with a subject of: unsubscribe t2


-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
lists@... with a subject of: unsubscribe t2