Skip to content

Commit

Permalink
add comments to why require used for git-repo-info
Browse files Browse the repository at this point in the history
  • Loading branch information
saisandeepvaddi committed Jun 2, 2019
1 parent 7994b5c commit 0275599
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/src/components/ProjectTopbar/ProjectTopbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import NewCommandDrawer from "../NewCommandDrawer";
import { useConfig } from "../shared/Config";
import { useProjects } from "../shared/Projects";
import { useTheme } from "../shared/Themes";

// Have to use require because it's type-definition doesn't have function that allows path
// Do not want to update node_module's file.
// tslint:disable-next-line: no-var-requires
const getRepoInfo = require("git-repo-info");

interface IProjectTopbarProps {
Expand Down

0 comments on commit 0275599

Please sign in to comment.