Skip to content

Path in views re-creation in init.sh is incorrect #2

@kandre

Description

@kandre

I think that views re-creation in init.sh at line 84 does not work properly:

QWAT_REPO="$(git rev-parse --show-toplevel)/qwat-data-model"
PGSERVICE=${PGSERVICE} SRID=${SRID} ${QWAT_REPO}/ordinary_data/views/rewrite_views.sh

Indeeed, the command $(git rev-parse --show-toplevel)/qwat-data-model will be incorrect anyway, either:

  • using QWAT repository which includes the datamodel and executing the script from QWAT folder, the command above returns: %some_path%/QWAT/qwat-data-model but in such case de the datamodel is named data-model
  • using qwat-data-model repository, the command above returns:
    %some_path%/qwat-data-model/qwat-data-model
  • Using QWAT repository and executing the script from a parent directory returns
    fatal: Not a git repository (or any of the parent directories): .git

The only way I found to get it work is by using QWAT project and renaming data-model folder to qwat-data-model.

I suggests it should work either by using QWAT or qwat-data-model repositories.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions