Commits

Greg Von Kuster committed 3d0db17

Fix for generating metadata on the repository tip.

Comments (0)

Files changed (1)

lib/galaxy/webapps/community/controllers/repository.py

             for changeset in repo.changelog:
                 current_changeset_revision = str( repo.changectx( changeset ) )
                 ctx = get_changectx_for_changeset( trans, repo, current_changeset_revision )
-                current_metadata_dict, invalid_files = generate_metadata_for_changeset_revision( trans, id, ctx, current_changeset_revision, repo_dir )
+                if current_changeset_revision == repository.tip:
+                    current_metadata_dict, invalid_files = generate_metadata_for_repository_tip( trans, id, ctx, current_changeset_revision, repo_dir )
+                else:
+                    current_metadata_dict, invalid_files = generate_metadata_for_changeset_revision( trans, id, ctx, current_changeset_revision, repo_dir )
                 if current_metadata_dict:
                     if ancestor_changeset_revision:
                         # Compare metadata from ancestor and current.  The value of comparsion will be one of: