Hello community,

here is the log from the commit of package obs-service-tar_scm for 
openSUSE:Factory checked in at 2012-05-25 16:16:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/obs-service-tar_scm (Old)
 and      /work/SRC/openSUSE:Factory/.obs-service-tar_scm.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "obs-service-tar_scm", Maintainer is ""

Changes:
--------
--- /work/SRC/openSUSE:Factory/obs-service-tar_scm/obs-service-tar_scm.changes  
2012-03-20 11:30:43.000000000 +0100
+++ 
/work/SRC/openSUSE:Factory/.obs-service-tar_scm.new/obs-service-tar_scm.changes 
    2012-05-25 16:17:00.000000000 +0200
@@ -1,0 +2,7 @@
+Thu May 24 00:57:28 GMT 2012 - [email protected]
+
+- Allow git revision to refer to revisions not available from a
+  default clone/fetch (i.e. refs other than refs/heads/* or
+  refs/tags/*)
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ tar_scm ++++++
--- /var/tmp/diff_new_pack.dLOVKT/_old  2012-05-25 16:17:03.000000000 +0200
+++ /var/tmp/diff_new_pack.dLOVKT/_new  2012-05-25 16:17:03.000000000 +0200
@@ -323,6 +323,23 @@
 switch_to_revision () {
   case "$MYSCM" in
     git)
+      # $MYREVISION may refer to any of the following:
+      #
+      # - explicit SHA1: a1b2c3d4....
+      #   - the SHA1 must be reachable from a default clone/fetch (generally, 
must be
+      #     reachable from some branch or tag on the remote).
+      #   - set by: git checkout <SHA1>
+      #
+      # - short branch name: "master", "devel" etc.
+      #   - set by: git checkout <branch> && git pull
+      #
+      # - explicit ref: refs/heads/master, refs/tags/v1.2.3, 
refs/changes/49/11249/1
+      #   - set by: git fetch <url> +<revision>:<revision> && git checkout 
<revision>
+      #
+      if ! git rev-parse --verify "$MYREVISION"; then
+        echo "$MYREVISION not accessible by default clone/fetch, attempting 
explicit fetch"
+        safe_run git fetch "$MYURL" "+$MYREVISION:$MYREVISION"
+      fi
       safe_run git checkout "$MYREVISION"
       if git branch | grep -q '^\* (no branch)$'; then
         echo "$MYREVISION does not refer to a branch, not attempting git pull"

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to