Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-3480

Pushing to fabric git repo does not pick the changes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • jboss-fuse-6.2
    • Fabric8 v1
    • None
    • % %
    • Hide

      2038 git clone file:///home/avano/work/jboss-fuse-6.2.0.redhat-133/data/git/local/fabric
      2040 cd fabric/
      2045 touch fabric/profiles/mq/base.profile/test.xml
      2046 git add -A
      2047 git commit -m "test"
      2048 git push
      check profile-display mq-base in fuse

      Show
      2038 git clone file:///home/avano/work/jboss-fuse-6.2.0.redhat-133/data/git/local/fabric 2040 cd fabric/ 2045 touch fabric/profiles/mq/base.profile/test.xml 2046 git add -A 2047 git commit -m "test" 2048 git push check profile-display mq-base in fuse

      When I clone the fabric repo from "fuse/data/git/local/fabric", make some changes and push them, these changes are not picked up by fabric. There are no signs in the log that something was happening.

      I pushed the file "test.xml" into mq-base profile and in the "fuse/data/git/local/fabric" git I can see:

      10:59:07 {1.0} ~/work/jboss-fuse-6.2.0.redhat-133/data/git/local/fabric$ git status
      On branch 1.0
      Your branch is ahead of 'origin/1.0' by 1 commit.
        (use "git push" to publish your local commits)
      
      Changes to be committed:
        (use "git reset HEAD <file>..." to unstage)
      
      	deleted:    fabric/profiles/mq/base.profile/test.xml
      

      Once I hit profile-refresh mq-base, the file gets deleted from the repository.

      If I push directly to the fabric repo, the behavior is the same with the difference, that I can see in the fuse log:

      2015-06-23 11:21:12,759 | INFO  | qtp770420686-284 | FabricGitServlet                 | ?                                   ? | 102 - io.fabric8.fabric-git-server - 1.2.0.redhat-133 | GitHttp service res=HTTP/1.1 200 
      Expires: Fri, 01 Jan 1980 00:00:00 GMT
      Pragma: no-cache
      Cache-Control: no-cache, max-age=0, must-revalidate
      Content-Type: application/x-git-receive-pack-result
      
      
      2015-06-23 11:21:12,760 | INFO  | qtp770420686-284 | FabricGitServlet                 | ?                                   ? | 102 - io.fabric8.fabric-git-server - 1.2.0.redhat-133 | Remote git content updated: [Ref[refs/heads/1.0=e559470b09a0e78281693c6f2c3ed72aa5bccd39], Ref[refs/heads/master=45e02b4bc25d00bac175cfc898bca76bc13bc51d]]
      2015-06-23 11:21:12,781 | INFO  | pool-22-thread-1 | DefaultPullPushPolicy            | ?                                   ? | 79 - io.fabric8.fabric-git - 1.2.0.redhat-133 | Performing a pull on remote URL: http://10.36.5.214:8181/git/fabric/
      2015-06-23 11:21:12,831 | INFO  | pool-22-thread-1 | DefaultPullPushPolicy            | ?                                   ? | 79 - io.fabric8.fabric-git - 1.2.0.redhat-133 | Pull result: [localUpdate=false,remoteUpdate=false,versions=[1.0, master],error=null]
      

      but I can't still see the file in profile and profile-refresh deletes the file from the repository

            avano@redhat.com Andrej Vano
            avano@redhat.com Andrej Vano
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: